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

Method clearEvtQueue

lib/AsyncHttpClient/src/AsyncHttpClient.cpp:556–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void AsyncHttpClient::clearEvtQueue()
557{
558 Event evt;
559
560 while (true == m_evtQueue.receive(&evt, 0U))
561 {
562 if (EVENT_ID_DATA == evt.id)
563 {
564 if (nullptr != evt.u.data.data)
565 {
566 m_allocator.deallocateArray(evt.u.data.data);
567 evt.u.data.data = nullptr;
568 evt.u.data.size = 0U;
569 }
570 }
571 }
572}
573
574void AsyncHttpClient::processTask(void* parameters)
575{

Callers

nothing calls this directly

Calls 2

receiveMethod · 0.80
deallocateArrayMethod · 0.80

Tested by

no test coverage detected