예제 #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
SqlPool::~SqlPool()
{
    stop_monitor_thread();
    monitor_.wait();
    close_all();
}