Atomic lock, release, and synchronize functions
__sync_lock_test_and_set
__sync_lock_release
__sync_synchronize
Parent topic:
GCC atomic memory access built-in functions (IBM extension)