示例#1
0
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;
}
示例#2
0
SqlPool::~SqlPool()
{
    stop_monitor_thread();
    monitor_.wait();
    close_all();
}