LabWindows/CVI

Content Type
Programming Language
Current manual

Locks Class Help

This class contains functions for the setting of general-purpose lock routines for thread synchronization.

An OpenMP lock may be in one of the following states: uninitialized, unlocked, or locked. If a lock is in the unlocked state, a thread may set the lock, which changes its state to locked. The thread which sets the lock owns the lock. A thread which owns a lock may unset that lock, returning it to the unlocked state. A thread may not set or unset a lock which is owned by another thread.

Constraints on the state and ownership of the lock accessed by each of the lock functions are described with the routine. If these constraints are not met, the behavior of the routine is unspecified.

The binding thread set for all lock functions is all threads, without regard to which team(s) the threads belong.

Library: OpenMP Run-Time Library

Was this information helpful?

Log in to get a better experience