| 1025 | struct global_fixture { |
| 1026 | std::shared_ptr<apache::thrift::concurrency::Thread> alarmThread_; |
| 1027 | global_fixture() { |
| 1028 | #if _WIN32 |
| 1029 | apache::thrift::transport::TWinsockSingleton::create(); |
| 1030 | #endif |
| 1031 | |
| 1032 | apache::thrift::concurrency::ThreadFactory factory; |
| 1033 | factory.setDetached(false); |
| 1034 | |
| 1035 | alarmThread_ = factory.newThread( |
| 1036 | apache::thrift::concurrency::FunctionRunner::create(alarm_handler_wrapper)); |
| 1037 | alarmThread_->start(); |
| 1038 | } |
| 1039 | ~global_fixture() { |
| 1040 | { |
| 1041 | apache::thrift::concurrency::Synchronized s(g_alarm_monitor); |
nothing calls this directly
no test coverage detected