atomic-incfPortable Threadsatomic-popatomic-incf&GoTo Top

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

Purpose
Increment the fixnum 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 containing a fixnum value
delta-form     A form that is evaluated to produce a fixnum delta value (default is 1)
new-place-value     A fixnum

Returns
The new fixnum 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 2)
  5
  >


The GBBopen Project


atomic-incfPortable Threadsatomic-popatomic-incf&GoTo Top