This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

信号量句柄semaphore_handle 需要加volatile关键词吗



单核多线程之间共享变量,尤其是共享标志变量需要用volatile关键词,是吗?那信号量要不要加volatile关键词呢?