IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2006, 1:17:11 AM (20 years ago)
Author:
eugene
Message:

adding ASSERTs all over

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/CheckPoint.c

    r8546 r10652  
    1818# ifdef THREADED
    1919  int status;
     20  int Nwait;
    2021
    2122  // set my lock
     
    2324
    2425  // wait until client thread sets its lock
     26  Nwait = 0;
    2527  while (1) {
    2628    status = pthread_mutex_trylock (&client);
     
    3133    pthread_mutex_unlock (&client);
    3234    usleep (10000); // wait for client thread to set lock
     35    Nwait ++;
     36    if (Nwait > 100) {
     37      fprintf (stderr, "deadlock?\n");
     38    }
    3339  }
    3440  // put in a timeout?  (client thread not spinning...)
Note: See TracChangeset for help on using the changeset viewer.