Lines Matching defs:callbacks
30 // If there are any pending callbacks, make sure they run before the Alarm
59 // Acquire the lock to check the callbacks.
71 std::vector<bool> callbacks;
78 callbacks.emplace_back(false);
80 handles.push_back(alarm.Create([&callbacks, &m, i]() {
82 callbacks[i] = true;
89 // Acquire the lock to check the callbacks.
93 for (bool callback : callbacks)
101 std::vector<bool> callbacks;
107 callbacks.emplace_back(false);
109 handles.push_back(alarm.Create([&callbacks, &m, i]() {
111 callbacks[i] = true;
122 // Acquire the lock to check the callbacks.
127 EXPECT_FALSE(callbacks[i]);
130 EXPECT_TRUE(callbacks[4]);
166 // Acquire the lock to check the callbacks.