int coevnet_module_do_other_jobs() { swop_counter = swop_counter / 2; get_connection_in_pool(_loop_fd, 0, NULL); check_lua_sleep_timeouts(); /// resume swops cosocket_swop_t *swop = NULL; if(swop_top->next != NULL) { swop = swop_top->next; swop_top->next = swop->next; if(swop_top->next == NULL) { swop_lat = NULL; } lua_State *L = swop->L; free(swop); swop = NULL; if(lua_status(L) == LUA_YIELD) { //lua_pushboolean ( L, 1 ); lua_f_lua_uthread_resume_in_c(L, 0); } } }
static int without_jobs() { check_lua_sleep_timeouts(); check_timeouts(); if ( checkProcessForExit() || has_error_for_exit ) { //network_send_error ( epd, 500, "Child Process restart!" ); //close_client ( epd ); } sync_serv_status(); do_other_jobs(); }