MCPcopy Create free account
hub / github.com/FastLED/FastLED / next_task_id

Function next_task_id

src/fl/task/task.cpp.hpp:22–25  ·  view source on GitHub ↗

Task ID generator (atomic for thread safety)

Source from the content-addressed store, hash-verified

20
21// Task ID generator (atomic for thread safety)
22int next_task_id() {
23 static fl::atomic<int> id(0); // okay static in header
24 return id.fetch_add(1) + 1;
25}
26} // namespace
27
28} // namespace task

Callers 2

TimeTaskMethod · 0.85
CoroutineTaskMethod · 0.85

Calls 1

fetch_addMethod · 0.45

Tested by

no test coverage detected