Lines Matching refs:s_busy_workers
163 static int *s_busy_workers = NULL; variable
435 if (s_busy_workers) in lsapi_close_connection()
436 __sync_fetch_and_sub(s_busy_workers, 1); in lsapi_close_connection()
1584 if (s_busy_workers) in LSAPI_Accept_r()
1585 __sync_fetch_and_add(s_busy_workers, 1); in LSAPI_Accept_r()
2874 if (s_busy_workers) in LSAPI_reset_server_state()
2875 __sync_lock_release(s_busy_workers); in LSAPI_reset_server_state()
2925 if (s_busy_workers) in lsapi_sigchild()
2926 __sync_fetch_and_sub(s_busy_workers, 1); in lsapi_sigchild()
2969 s_busy_workers = (int *)g_prefork_server->m_pChildrenStatusEnd; in lsapi_init_children_status()
2970 s_accepting_workers = s_busy_workers + 1; in lsapi_init_children_status()
3236 s_busy_workers ? *s_busy_workers : -1 ); in lsapi_prefork_server_accept()
3274 if (s_busy_workers) in lsapi_prefork_server_accept()
3275 __sync_add_and_fetch(s_busy_workers, 1); in lsapi_prefork_server_accept()
3278 if (!s_keep_listener && s_busy_workers in lsapi_prefork_server_accept()
3279 && *s_busy_workers > (pServer->m_iMaxChildren >> 1)) in lsapi_prefork_server_accept()
3361 if (s_busy_workers) in LSAPI_Postfork_Child()
3362 __sync_add_and_fetch(s_busy_workers, 1); in LSAPI_Postfork_Child()
3365 if (!s_keep_listener && s_busy_workers in LSAPI_Postfork_Child()
3366 && *s_busy_workers > (max_children >> 1)) in LSAPI_Postfork_Child()
3509 s_busy_workers ? *s_busy_workers : -1); in LSAPI_Accept_Before_Fork()
3562 else if (s_req_processed > 0 && s_max_busy_workers > 0 && s_busy_workers) in LSAPI_Prefork_Accept_r()
3564 ret = __sync_fetch_and_add(s_busy_workers, 0); in LSAPI_Prefork_Accept_r()
3635 if (s_busy_workers) in LSAPI_Prefork_Accept_r()
3636 wait_time += *s_busy_workers * 10; in LSAPI_Prefork_Accept_r()
3670 if (s_busy_workers) in LSAPI_Prefork_Accept_r()
3671 __sync_fetch_and_add(s_busy_workers, 1); in LSAPI_Prefork_Accept_r()