protected WaitSlot insertWaiter(SynchEvent event, long time) { // get a wait slot for this waiter WaitSlot w = getWaitSlot(time); // now this thread is officially waiting wait_count++; // remember the wait slot this waiter is in event.waitSlot = w; // increment the number of waiters in this slot w.numWaiters++; return w; }