wait_event() problems

2001-07-03 Thread Richard B. Johnson
I have been trying to get the following to work: atomic_t stop; struct wait_queue wait_queue_stuff, another_wait_queue; /* Initialized before use with init_wait_queue() */ kernel_thread() { for(;;) { if(atomic_read(stop)) interruptible_sleep_on(_queue_stuff);

wait_event() problems patch

2001-07-03 Thread Richard B. Johnson
I have been trying to get the following to work: atomic_t stop; struct wait_queue wait_queue_stuff, another_wait_queue; /* Initialized before use with init_wait_queue() */ kernel_thread() { for(;;) { if(atomic_read(stop)) interruptible_sleep_on(wait_queue_stuff);