The Wait-Free Double-Ended Queue
The wait-free double-ended queue is just a class that composes a wait-free write queue with a wait-free read queue. This is strictly a convenience class. It offers no facilities that you would not get from the two separate components.
The correct use of a WaitFreeDequeue would be to have the higher-priority end of the double-ended queue use force, nonBlockingRead, and nonBlockingWrite. The lower-priority end of the double-ended queue should use blockingRead and blockingWrite.
Methods
public java.lang.Object blockingRead( )
Performs a read on the constituent WaitFreeWriteQueue.
public boolean blockingWrite(java.lang.Object object) throws MemoryScopeException
Performs a write on the constituent WaitFreeReadQueue ...
Get Real-Time Java™ Platform Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.