Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ mutex lock/unlock

#include <mutex>

/***********************/

mutex m;

/***********************/

void function()
{
  m.lock();
    /* Function's Code */
  m.unlock();
}
 
PREVIOUS NEXT
Tagged: #mutex
ADD COMMENT
Topic
Name
9+6 =