Esempio n. 1
0
static int _do_other_jobs()
{
    coevnet_module_do_other_jobs();

    if(lua_status(job_L) != LUA_YIELD) {
        return 0;
    }

    return 1;
}
Esempio n. 2
0
static int other_simple_jobs()
{
    coevnet_module_do_other_jobs();
    sync_serv_status();
#ifdef SMPDEBUG

    if(now - dump_smp_link_time > 60) {
        dump_smp_link_time = now;
        dump_smp_link();
    }

#endif

    if(++flush_logs_timer > 100) {
        flush_logs_timer = 0;
        sync_logs(LOGF_T);
        sync_logs(ACCESS_LOG);
    }

    return 1; // return 0 will be exit the worker
}