atomic-incf Portable Threadsatomic-pushatomic-popGoTo Top

atomic-pop   place => element[Macro]

Purpose
As an atomic operation, remove the first element from the list stored in place, store the updated list in place, and return the removed first element.

Package   :portable-threads

Module   :portable-threads

Arguments and values

place     A form which is suitable for use as a generalized reference that contains a proper list or a dotted list
element     An object

Returns
The first element (the car) of the list stored in place.

See also
    as-atomic-operation
    atomic-delete
    atomic-flush
    atomic-push
    atomic-pushnew

Example

  > list
  (1 2 3)
  > (atomic-pop list)
  1
  > list
  (2 3)
  >


The GBBopen Project


atomic-incf Portable Threadsatomic-pushatomic-popGoTo Top