Lines Matching refs:s_busy_workers
161 static int *s_busy_workers = NULL; variable
433 if (s_busy_workers) in lsapi_close_connection()
434 __atomic_fetch_sub(s_busy_workers, 1, __ATOMIC_SEQ_CST); in lsapi_close_connection()
1583 if (s_busy_workers) in LSAPI_Accept_r()
1584 __atomic_fetch_add(s_busy_workers, 1, __ATOMIC_SEQ_CST); in LSAPI_Accept_r()
2873 if (s_busy_workers) in LSAPI_reset_server_state()
2874 __atomic_store_n(s_busy_workers, 0, __ATOMIC_SEQ_CST); in LSAPI_reset_server_state()
2928 if (s_busy_workers) in lsapi_sigchild()
2929 __atomic_fetch_sub(s_busy_workers, 1, __ATOMIC_SEQ_CST); in lsapi_sigchild()
2974 s_busy_workers = (int *)g_prefork_server->m_pChildrenStatusEnd; in lsapi_init_children_status()
2975 s_accepting_workers = s_busy_workers + 1; in lsapi_init_children_status()
3241 s_busy_workers ? *s_busy_workers : -1 ); in lsapi_prefork_server_accept()
3279 if (s_busy_workers) in lsapi_prefork_server_accept()
3280 __atomic_add_fetch(s_busy_workers, 1, __ATOMIC_SEQ_CST); in lsapi_prefork_server_accept()
3283 if (!s_keep_listener && s_busy_workers in lsapi_prefork_server_accept()
3284 && *s_busy_workers > (pServer->m_iMaxChildren >> 1)) in lsapi_prefork_server_accept()
3366 if (s_busy_workers) in LSAPI_Postfork_Child()
3367 __atomic_add_fetch(s_busy_workers, 1, __ATOMIC_SEQ_CST); in LSAPI_Postfork_Child()
3370 if (!s_keep_listener && s_busy_workers in LSAPI_Postfork_Child()
3371 && *s_busy_workers > (max_children >> 1)) in LSAPI_Postfork_Child()
3514 s_busy_workers ? *s_busy_workers : -1); in LSAPI_Accept_Before_Fork()
3567 else if (s_req_processed > 0 && s_max_busy_workers > 0 && s_busy_workers) in LSAPI_Prefork_Accept_r()
3569 ret = __atomic_load_n(s_busy_workers, __ATOMIC_SEQ_CST); in LSAPI_Prefork_Accept_r()
3640 if (s_busy_workers) in LSAPI_Prefork_Accept_r()
3641 wait_time += *s_busy_workers * 10; in LSAPI_Prefork_Accept_r()
3676 if (s_busy_workers) in LSAPI_Prefork_Accept_r()
3677 __atomic_fetch_add(s_busy_workers, 1, __ATOMIC_SEQ_CST); in LSAPI_Prefork_Accept_r()