Hardware Reference
In-Depth Information
13 static void
14 mutex_lock(void) {
15 intrc = pthread_mutex_lock(&mutex);
16 assert(!rc);
17 }
18
19 static void
20 mutex_unlock(void) {
21 int rc = pthread_mutex_unlock(&mutex);
22 assert(!rc);
23 }
24
25 /
End mutex.c
/
Search WWH ::




Custom Search