Answers for "how to mutex lock in c"

C
1

how to mutex lock in c

pthread_mutex_t my_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_lock(&my_mutex);
/* locked code */
pthread_mutex_unlock(&my_mutex);
Posted by: Guest on May-03-2020

Code answers related to "C"

Browse Popular Code Answers by Language