| 528 | } |
| 529 | |
| 530 | void AsyncHttpClient::destroyProcessTask() |
| 531 | { |
| 532 | /* Is the task running? */ |
| 533 | if (nullptr != m_processTaskSemaphore) |
| 534 | { |
| 535 | /* Request task to exit and wait until its done. */ |
| 536 | m_processTaskExit = true; |
| 537 | (void)xSemaphoreTake(m_processTaskSemaphore, portMAX_DELAY); |
| 538 | m_processTaskHandle = nullptr; |
| 539 | |
| 540 | /* After task is destroyed, the signal semaphore can safely be destroyed. */ |
| 541 | vSemaphoreDelete(m_processTaskSemaphore); |
| 542 | m_processTaskSemaphore = nullptr; |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | void AsyncHttpClient::clearCmdQueue() |
| 547 | { |
nothing calls this directly
no outgoing calls
no test coverage detected