Protect the following block or statement as a critical section of the program by using CMP as a condition-mutex.
- Parameters
-
CMP | is an expression that evaluates to a pointer to p99_cm. The cm is used as a condition-mutex, so this is an inactive wait. |
- Warning
- Such a section should not contain preliminary exits such as
goto
, break
, return
, longjmp
, or P99_UNWIND etc.
- See also
- P99_MUTUAL_EXCLUDE that uses a standard ::mtx_t
Definition at line 213 of file p99_cm.h.