Changeset 10652 for trunk/Ohana/src/opihi/pcontrol/CheckPoint.c
- Timestamp:
- Dec 12, 2006, 1:17:11 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckPoint.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckPoint.c
r8546 r10652 18 18 # ifdef THREADED 19 19 int status; 20 int Nwait; 20 21 21 22 // set my lock … … 23 24 24 25 // wait until client thread sets its lock 26 Nwait = 0; 25 27 while (1) { 26 28 status = pthread_mutex_trylock (&client); … … 31 33 pthread_mutex_unlock (&client); 32 34 usleep (10000); // wait for client thread to set lock 35 Nwait ++; 36 if (Nwait > 100) { 37 fprintf (stderr, "deadlock?\n"); 38 } 33 39 } 34 40 // put in a timeout? (client thread not spinning...)
Note:
See TracChangeset
for help on using the changeset viewer.
