Commit 76b0a341 authored by i.zyryanov1's avatar i.zyryanov1
Browse files

Update mutex.c

parent 7bfd5452
......@@ -34,10 +34,10 @@ void mutex_unlock(mutex_t* mutex) {
}
}
mutex_t my_mutex;
void* thread_function(void* arg) {
mutex_lock(&my_mutex);
mutex_unlock(&my_mutex);
mutex_lock(&mutex);
mutex_unlock(&mutex);
return NULL;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment