Previous: SharedQueue class-instance creation, Up: SharedQueue [Index]
Answer whether there is an object on the queue
Wait for an object to be on the queue, then remove it and answer it
Put value on the queue and answer it
Wait for an object to be on the queue if necessary, then answer the same object that #next would answer without removing it.