atomic-decfPortable Threadsatomic-deleteatomic-decf&GoTo Top

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

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

Examples

  > x
  5
  > (atomic-decf& x)
  4
  > (atomic-decf& x 2)
  2
  >


The GBBopen Project


atomic-decfPortable Threadsatomic-deleteatomic-decf&GoTo Top