Generic FunctionPackage: mpToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
Unrevised from 8.0 to 8.1.
8.0 version

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.

The function queue-empty-p indicates whether the queue is empty or not.

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".

The whostate keyword argument is ignored. It will be removed in a future release.

See Queues in multiprocessing.htm for more information.


Copyright (c) 1998-2009, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.1. This page was not revised from the 8.0 page.
Created 2009.7.29.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
Unrevised from 8.0 to 8.1.
8.0 version