MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / destroyProcessTask

Method destroyProcessTask

lib/AsyncHttpClient/src/AsyncHttpClient.cpp:530–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530void 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
546void AsyncHttpClient::clearCmdQueue()
547{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected