MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / Context

Class Context

Tests/TactilityKernel/Source/TimerTest.cpp:119–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117TEST_CASE("timer_set_pending_callback should execute callback in timer task") {
118 std::atomic<bool> called{false};
119 struct Context {
120 std::atomic<bool>* called;
121 uint32_t expected_arg;
122 uint32_t received_arg;
123 } context = { &called, 0x12345678, 0 };
124
125 auto pending_cb = [](void* ctx, uint32_t arg) {
126 auto* c = static_cast<Context*>(ctx);

Callers 2

DOCTEST_DEFINE_DECORATORFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 2

DOCTEST_DEFINE_DECORATORFunction · 0.40
mainFunction · 0.40