obsolete/queues.c
int _remove_wait_thread( JIMP_wait_queue *wq, JIMP_thread_s *jt ) {

	JIMP_wait_queue *l = wq, *p, *n;
	p = l->next;
	
   /* Seek thread's slot */	
	while( p ){ 
	  if( (p->th == jt->t) && (p->th_obj == jt->obj) ) {
	    n = p->next;
		l->next = n;
		free( p );
		return 1;   /* removed OK */
	  }
	  p = p->next; 
	  l = l->next; 
	}
	/* Not found */
	return 0;
}
/* Remove thread from the wait queue */
Remove thread from the wait queue
Remove thread from the wait queue
int _remove_wait_thread( JIMP_wait_queue *wq, JIMP_thread_s *jt ) {
	JIMP_wait_queue *l = wq, *p, *n;
	p = l->next;
	while( p ){ 
	  if( (p->th == jt->t) && (p->th_obj == jt->obj) ) {
	    n = p->next;
		l->next = n;
		free( p );
		return 1;   
	  }
	  p = p->next; 
	  l = l->next; 
	}
	return 0;
}
int _remove_wait_thread ( JIMP_wait_queue * wq , JIMP_thread_s * jt ) { JIMP_wait_queue * l = wq , * p , * n ; p = l -> next ; while ( p ) { if ( ( p -> th == jt -> t ) && ( p -> th_obj == jt -> obj ) ) { n = p -> next ; l -> next = n ; free ( p ) ; return 1 ; } p = p -> next ; l = l -> next ; } return 0 ; }
Remove thread from the wait queue
Remove thread from the wait queue
/* Seek thread's slot */ /* removed OK */ /* Not found */