Lines Matching defs:child_slot
65 static int child_slot;
148 for (child_slot = 0; ap_scoreboard_image->parent[child_slot].pid != my_pid && child_slot < HARD_SERVER_LIMIT; child_slot++);
150 if (child_slot == HARD_SERVER_LIMIT) {
156 ap_my_generation = ap_scoreboard_image->parent[child_slot].generation;
157 memset(ap_scoreboard_image->servers[child_slot], 0, sizeof(worker_score) * HARD_THREAD_LIMIT);
172 // ap_scoreboard_image->servers[child_slot][c].tid = _beginthread(worker_main, NULL, 128*1024, (void *)c);
251 ap_scoreboard_image->parent[child_slot].quiescing = 1;
260 if (ap_scoreboard_image->servers[child_slot][c].status != SERVER_DEAD) {
269 if (ap_scoreboard_image->servers[child_slot][c].status != SERVER_DEAD) {
280 if (ap_scoreboard_image->servers[child_slot][c].status != SERVER_DEAD) {
281 DosKillThread(ap_scoreboard_image->servers[child_slot][c].tid);
298 if (ap_scoreboard_image->servers[child_slot][thread_slot].status == SERVER_DEAD) {
299 ap_scoreboard_image->servers[child_slot][thread_slot].status = SERVER_STARTING;
300 ap_scoreboard_image->servers[child_slot][thread_slot].tid =
325 if (ap_scoreboard_image->servers[child_slot][c].tid == _gettid()) {
326 ap_scoreboard_image->servers[child_slot][c].status = SERVER_DEAD;
333 ap_scoreboard_image->parent[child_slot].quiescing = 1;
375 ap_scoreboard_image->servers[child_slot][thread_slot].tid = 0;
378 conn_id = ID_FROM_CHILD_THREAD(child_slot, thread_slot);
379 ap_update_child_status_from_indexes(child_slot, thread_slot, SERVER_READY,
389 ap_create_sb_handle(&sbh, pconn, child_slot, thread_slot);
401 ap_update_child_status_from_indexes(child_slot, thread_slot,
405 ap_update_child_status_from_indexes(child_slot, thread_slot, SERVER_DEAD,
434 num_idle += ap_scoreboard_image->servers[child_slot][threadnum].status == SERVER_READY;