LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp.lasp_atomic Namespace Reference

Provides a simple atomic variable: More...

Classes

class  Atomic
 Implementation of atomic operations on integers and booleans. More...
 

Detailed Description

Provides a simple atomic variable:

‍a = Atomic(0)

Retrieve the value

‍b = a()

Set a new value:

‍a <<= b

Get conversion to boolean:

‍if a: do something

Atomic increment:

‍A += 1

Author
: J.A. de Jong - ASCEE