コード例 #1
0
ファイル: sync.cpp プロジェクト: 87439247/huststore
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
ファイル: sql_pool.cpp プロジェクト: CarverLab/yb-orm
SqlPool::~SqlPool()
{
    stop_monitor_thread();
    monitor_.wait();
    close_all();
}