Lines Matching refs:slottable

92 	slot_id = slottable->st_first;  in C_GetSlotList()
93 for (i = slottable->st_first; i <= slottable->st_last; i++) { in C_GetSlotList()
241 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
242 if ((slottable->st_blocking) || (slottable->st_wfse_active)) { in C_WaitForSlotEvent()
243 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
246 slottable->st_wfse_active = B_TRUE; in C_WaitForSlotEvent()
247 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
255 for (i = slottable->st_first; i <= slottable->st_last; i++) { in C_WaitForSlotEvent()
257 cur_slot = slottable->st_slots[i]; in C_WaitForSlotEvent()
273 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
274 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
275 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
292 for (i = slottable->st_first; i <= slottable->st_last; i++) { in C_WaitForSlotEvent()
293 prov_id = slottable->st_slots[i]->sl_prov_id; in C_WaitForSlotEvent()
294 cur_slot = slottable->st_slots[i]; in C_WaitForSlotEvent()
344 slottable->st_slots[j]->sl_prov_id) { in C_WaitForSlotEvent()
350 &slottable->st_mutex); in C_WaitForSlotEvent()
351 slottable->st_wfse_active = in C_WaitForSlotEvent()
354 &slottable->st_mutex); in C_WaitForSlotEvent()
374 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
375 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
376 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
386 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
387 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
388 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
397 (void) pthread_mutex_lock(&slottable->st_start_mutex); in C_WaitForSlotEvent()
404 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
405 if (pthread_create(&slottable->st_tid, NULL, in C_WaitForSlotEvent()
407 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
408 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
409 (void) pthread_mutex_unlock(&slottable->st_start_mutex); in C_WaitForSlotEvent()
413 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
419 (void) pthread_cond_wait(&slottable->st_start_cond, in C_WaitForSlotEvent()
420 &slottable->st_start_mutex); in C_WaitForSlotEvent()
421 (void) pthread_mutex_unlock(&slottable->st_start_mutex); in C_WaitForSlotEvent()
430 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
439 for (i = slottable->st_first; i <= slottable->st_last; i++) { in C_WaitForSlotEvent()
440 prov_id = slottable->st_slots[i]->sl_prov_id; in C_WaitForSlotEvent()
441 cur_slot = slottable->st_slots[i]; in C_WaitForSlotEvent()
478 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
480 &slottable->st_mutex); in C_WaitForSlotEvent()
502 slottable->st_thr_count++; in C_WaitForSlotEvent()
508 if (slottable->st_thr_count == 0) { in C_WaitForSlotEvent()
509 (void) pthread_cancel(slottable->st_tid); in C_WaitForSlotEvent()
512 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
513 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
517 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
520 (void) pthread_join(slottable->st_tid, NULL); in C_WaitForSlotEvent()
524 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
525 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
526 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
531 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
532 event_slot = slottable->st_event_slot; in C_WaitForSlotEvent()
533 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
537 (void) pthread_mutex_lock(&slottable-> in C_WaitForSlotEvent()
539 if (slottable->st_slots[event_slot]-> in C_WaitForSlotEvent()
543 slottable->st_slots[event_slot]->sl_wfse_state = in C_WaitForSlotEvent()
545 (void) pthread_mutex_unlock(&slottable-> in C_WaitForSlotEvent()
548 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
549 slottable->st_blocking = B_FALSE; in C_WaitForSlotEvent()
550 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
551 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
554 (void) pthread_mutex_unlock(&slottable-> in C_WaitForSlotEvent()
559 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()
560 slottable->st_blocking = B_FALSE; in C_WaitForSlotEvent()
561 slottable->st_wfse_active = B_FALSE; in C_WaitForSlotEvent()
562 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()
898 (void) pthread_mutex_lock(&slottable->st_mutex); in listener_waitforslotevent()
899 slottable->st_blocking = B_TRUE; in listener_waitforslotevent()
902 (void) pthread_mutex_lock(&slottable->st_start_mutex); in listener_waitforslotevent()
903 (void) pthread_cond_signal(&slottable->st_start_cond); in listener_waitforslotevent()
904 (void) pthread_mutex_unlock(&slottable->st_start_mutex); in listener_waitforslotevent()
913 while (slottable->st_list_signaled != B_TRUE) { in listener_waitforslotevent()
914 (void) pthread_cond_wait(&slottable->st_wait_cond, in listener_waitforslotevent()
915 &slottable->st_mutex); in listener_waitforslotevent()
918 slottable->st_list_signaled = B_FALSE; in listener_waitforslotevent()
923 (void) pthread_mutex_unlock(&slottable->st_mutex); in listener_waitforslotevent()
928 slottable->st_thr_count--; in listener_waitforslotevent()
930 eventID = slottable->st_event_slot; in listener_waitforslotevent()
934 (void) pthread_mutex_lock(&slottable-> in listener_waitforslotevent()
937 if (slottable->st_slots[eventID]-> in listener_waitforslotevent()
939 (void) pthread_mutex_unlock(&slottable-> in listener_waitforslotevent()
948 &slottable->st_mutex); in listener_waitforslotevent()
952 (void) pthread_mutex_unlock(&slottable-> in listener_waitforslotevent()
956 if (slottable->st_thr_count == 0) { in listener_waitforslotevent()
957 (void) pthread_mutex_unlock(&slottable->st_mutex); in listener_waitforslotevent()
993 (void) pthread_mutex_lock(&slottable->st_mutex); in child_waitforslotevent()
995 while (slottable->st_list_signaled == B_TRUE) { in child_waitforslotevent()
1001 (void) pthread_mutex_unlock(&slottable->st_mutex); in child_waitforslotevent()
1003 (void) pthread_mutex_lock(&slottable->st_mutex); in child_waitforslotevent()
1008 cur_prov = slottable->st_slots[wfse->slotid]->sl_prov_id; in child_waitforslotevent()
1015 (void) pthread_mutex_lock(&slottable-> in child_waitforslotevent()
1018 slottable->st_slots[wfse->slotid]->sl_wfse_state = WFSE_CLEAR; in child_waitforslotevent()
1020 (void) pthread_mutex_unlock(&slottable-> in child_waitforslotevent()
1024 for (i = wfse->slotid; i <= slottable->st_last; i++) { in child_waitforslotevent()
1025 if (cur_prov != slottable->st_slots[i]->sl_prov_id) { in child_waitforslotevent()
1029 if (slot == slottable->st_slots[i]->sl_id) { in child_waitforslotevent()
1030 (void) pthread_mutex_lock(&slottable-> in child_waitforslotevent()
1033 slottable->st_slots[i]-> in child_waitforslotevent()
1036 (void) pthread_mutex_unlock(&slottable-> in child_waitforslotevent()
1039 slottable->st_event_slot = i; in child_waitforslotevent()
1041 if (slottable->st_blocking) { in child_waitforslotevent()
1042 slottable->st_list_signaled = B_TRUE; in child_waitforslotevent()
1043 (void) pthread_cond_signal(&slottable-> in child_waitforslotevent()
1048 &slottable->st_mutex); in child_waitforslotevent()
1056 (void) pthread_mutex_lock(&slottable-> in child_waitforslotevent()
1066 slottable->st_slots[wfse->slotid]->sl_no_wfse = B_TRUE; in child_waitforslotevent()
1074 slottable->st_slots[wfse->slotid]->sl_wfse_state = WFSE_CLEAR; in child_waitforslotevent()
1075 (void) pthread_mutex_unlock(&slottable-> in child_waitforslotevent()
1079 if (slottable->st_blocking) { in child_waitforslotevent()
1080 slottable->st_list_signaled = B_TRUE; in child_waitforslotevent()
1081 (void) pthread_cond_signal(&slottable->st_wait_cond); in child_waitforslotevent()
1084 (void) pthread_mutex_unlock(&slottable->st_mutex); in child_waitforslotevent()