MCPcopy Create free account
hub / github.com/SmingHub/Sming / process

Method process

Sming/Arch/Host/Components/esp_hal/tasks.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void process()
29 {
30 // Don't service any newly queued events
31 for(unsigned n = count; n != 0; --n) {
32 mutex.lock();
33 auto evt = events[read];
34 read = (read + 1) % length;
35 --count;
36 mutex.unlock();
37 callback(&evt);
38 }
39 }
40
41private:
42 static CMutex mutex;

Callers 1

host_service_tasksFunction · 0.45

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected