Lines Matching refs:curr
326 THREAD_EVENT_HANDLER *curr, *prev = NULL, *tmp; in init_thread_stop() local
344 curr = *hands; in init_thread_stop()
345 while (curr != NULL) { in init_thread_stop()
346 if (arg != NULL && curr->arg != arg) { in init_thread_stop()
347 prev = curr; in init_thread_stop()
348 curr = curr->next; in init_thread_stop()
351 curr->handfn(curr->arg); in init_thread_stop()
353 *hands = curr->next; in init_thread_stop()
355 prev->next = curr->next; in init_thread_stop()
357 tmp = curr; in init_thread_stop()
358 curr = curr->next; in init_thread_stop()
441 THREAD_EVENT_HANDLER *curr = NULL, *prev = NULL, *tmp; in init_thread_deregister() local
448 curr = *hands; in init_thread_deregister()
449 while (curr != NULL) { in init_thread_deregister()
450 if (all || curr->index == index) { in init_thread_deregister()
452 prev->next = curr->next; in init_thread_deregister()
454 *hands = curr->next; in init_thread_deregister()
455 tmp = curr; in init_thread_deregister()
456 curr = curr->next; in init_thread_deregister()
460 prev = curr; in init_thread_deregister()
461 curr = curr->next; in init_thread_deregister()