Index: trunk/Ohana/src/opihi/pcontrol/CheckPoint.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/CheckPoint.c	(revision 8546)
+++ trunk/Ohana/src/opihi/pcontrol/CheckPoint.c	(revision 10652)
@@ -18,4 +18,5 @@
 # ifdef THREADED
   int status;
+  int Nwait;
 
   // set my lock
@@ -23,4 +24,5 @@
 
   // wait until client thread sets its lock
+  Nwait = 0;
   while (1) {
     status = pthread_mutex_trylock (&client);
@@ -31,4 +33,8 @@
     pthread_mutex_unlock (&client);
     usleep (10000); // wait for client thread to set lock
+    Nwait ++;
+    if (Nwait > 100) {
+      fprintf (stderr, "deadlock?\n");
+    }
   }
   // put in a timeout?  (client thread not spinning...)
