Back: Set-comparing Up: Base classes Forward: SharedQueue class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.151 SharedQueue

Defined in namespace Smalltalk
Superclass: Object
Category: Language-Processes
My instances provide a guaranteed safe mechanism to allow for communication between processes. All access to the underlying data structures is controlled with critical sections so that things proceed smoothly.

1.151.1 SharedQueue class: instance creation  (class)
1.151.2 SharedQueue: accessing  (instance)


1.151.1 SharedQueue class: instance creation

new
Create a new instance of the receiver

sortBlock: sortBlock
Create a new instance of the receiver which implements a priority queue with the given sort block


1.151.2 SharedQueue: accessing

isEmpty
Answer whether there is an object on the queue

next
Wait for an object to be on the queue, then remove it and answer it

nextPut: value
Put value on the queue and answer it

peek
Wait for an object to be on the queue if necessary, then answer the same object that #next would answer without removing it.



Back: SharedQueue class-instance creation Up: SharedQueue Forward: SingletonProxy   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html