as-atomic-operationPortable Threadsatomic-decf atomic-decfGoTo Top

atomic-decf   place [delta-form] => new-place-value[Macro]

Purpose
Decrement the value stored in place as an atomic operation.

Package   :portable-threads

Module   :portable-threads

Arguments and values

place     A form which is suitable for use as a generalized reference
delta-form     A form that is evaluated to produce a delta value (default is 1)
new-place-value     A number

Returns
The new value of place.

See also
    as-atomic-operation
    atomic-decf&
    atomic-delete
    atomic-flush
    atomic-incf
    atomic-incf&
    atomic-pop
    atomic-pushnew

Examples

  > x
  5
  > (atomic-decf x)
  4
  > (atomic-decf x 1.5)
  2.5
  >


The GBBopen Project


as-atomic-operationPortable Threadsatomic-decf atomic-decfGoTo Top