Changeset 125 in libcf for trunk/test/thread.c
- Timestamp:
- 06/12/13 13:44:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/thread.c
r122 r125 10 10 11 11 int worker (void * arg) { 12 if (CF_Mutex_Lock ( &globalMutex) < 0) { // for critical section12 if (CF_Mutex_Lock (globalMutex) < 0) { // for critical section 13 13 // error 14 14 } … … 16 16 fprintf (stderr, "here is critical section !\n"); 17 17 18 if (CF_Mutex_Unlock ( &globalMutex) < 0) { // for critical section18 if (CF_Mutex_Unlock (globalMutex) < 0) { // for critical section 19 19 // error 20 20 }
Note:
See TracChangeset
for help on using the changeset viewer.