In Linux pthreads, the pthread_cond_destroy is used to destroy the conditionalvariable.
在Linux pthreads中,使用pthread_cond_destroy来销毁条件变量。
2
The atomic variable classes can be thought of as a generalization of volatile variables, extending the concept of volatile variables to support atomic conditional compare-and-set updates.
The second case, the conditional modification of a variable, is a subset of the variable reuse problem except that sometimes we will keep our existing value and sometimes we will want a new value.