atomic-popPortable Threadsatomic-pushnewatomic-pushGoTo Top

atomic-push   item place => new-place-value[Macro]

Purpose
As an atomic operation, prepend item to the list stored in place and store the updated list in place.

Package   :portable-threads

Module   :portable-threads

Arguments and values

item     An object
place     A form which is suitable for use as a generalized reference
new-place-value     A proper list

Returns
The new value of place.

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

Example

  > list
  (1 2 3)
  > (atomic-push 10 list)
  (10 1 2 3)
  >


The GBBopen Project


atomic-popPortable Threadsatomic-pushnewatomic-pushGoTo Top