Generic FunctionPackage: mpToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

dequeue

Arguments: queue &key wait whostate

Removes the object at the head of the queued sequence queue, that is, the one that has been queued the longest, and returns that object. If queue is empty, then the result depends on the value of the wait keyword argument. If wait is nil (the default), then an error is signaled. If wait is true, then the process waits until it can successfully dequeue an object from the queue. The predefined method is for the queue class.

Interlocks ensure that no entry in the queue will be retrieved by more than one process (once the dequeuing starts, it will complete). If the process does wait, its whostate will be set from the whostate keyword argument, which defaults to the string "waiting for something".

See Queues (both models) in multiprocessing.htm for more information.


Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1