waiting_do — perform a given wait
extern int waiting_do(waiting* , int* );
extern int waiting_do
perform a given wait