c_bool_t stop_sync ( ) { if ( stop_monitor_thread () != 0 ) { return false; } if ( stop_check_db_thread () != 0 ) { return false; } if ( stop_timer_thread () != 0 ) { return false; } if ( stop_read_log_thread () != 0 ) { return false; } delete tp; return true; }
SqlPool::~SqlPool() { stop_monitor_thread(); monitor_.wait(); close_all(); }