atomic-flushPortable Threadsatomic-incf atomic-incfGoTo Top

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

Purpose
Increment 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-decf&
    atomic-delete
    atomic-flush
    atomic-incf&
    atomic-pop
    atomic-pushnew

Examples

  > x
  2
  > (atomic-incf x)
  3
  > (atomic-incf x 1.5)
  4.5
  >


The GBBopen Project


atomic-flushPortable Threadsatomic-incf atomic-incfGoTo Top