kernels/linux-2.4.0/include/linux/wait.h
/*
 * Used for wake-one threads:
 */
Used for wake-one threads.
Used for wake - one threads .
static inline void __add_wait_queue_tail(wait_queue_head_t *head,
						wait_queue_t *new)
{
#if WAITQUEUE_DEBUG
	if (!head || !new)
		WQ_BUG();
	CHECK_MAGIC_WQHEAD(head);
	CHECK_MAGIC(new->__magic);
	if (!head->task_list.next || !head->task_list.prev)
		WQ_BUG();
#endif
	list_add_tail(&new->task_list, &head->task_list);
}
static inline void __add_wait_queue_tail ( wait_queue_head_t * head , wait_queue_t * new ) { #if WAITQUEUE_DEBUG if ( ! head || ! new ) WQ_BUG ( ) ; CHECK_MAGIC_WQHEAD ( head ) ; CHECK_MAGIC ( new -> __magic ) ; if ( ! head -> task_list . next || ! head -> task_list . prev ) WQ_BUG ( ) ; #endif list_add_tail ( & new -> task_list , & head -> task_list ) ; }
Used for wake-one threads:
Used for wake - one threads :