MCPcopy Create free account
hub / github.com/apache/thrift / clear_triggers

Function clear_triggers

lib/cpp/test/TransportTest.cpp:443–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443void clear_triggers() {
444 TriggerInfo* info = nullptr;
445
446 {
447 apache::thrift::concurrency::Synchronized s(g_alarm_monitor);
448 info = g_triggerInfo;
449 g_triggerInfo = nullptr;
450 g_numTriggersFired = 0;
451 g_alarm_monitor.notify();
452 }
453
454 while (info != nullptr) {
455 TriggerInfo* next = info->next;
456 delete info;
457 info = next;
458 }
459}
460
461void set_trigger(unsigned int seconds,
462 const std::shared_ptr<TTransport>& transport,

Callers 7

set_triggerFunction · 0.85
test_read_part_availableFunction · 0.85
test_read_none_availableFunction · 0.85

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected