FACT++  1.0
void dim_lock ( )

Definition at line 455 of file dim_thr.c.

Referenced by dim_signal_cond(), do_work(), StateMachineDim::Lock(), and DataLogger::~DataLogger().

456 {
457  /*printf("Locking %d ", pthread_self());*/
458  if(Dim_thr_locker != pthread_self())
459  {
460 /*
461 #ifdef __linux__
462  pthread_testcancel();
463 #endif
464 */
465  pthread_mutex_lock(&Global_DIM_mutex);
466  Dim_thr_locker=pthread_self();
467  /*printf(": Locked ");*/
468  }
469  /*printf("Counter = %d\n",Dim_thr_counter);*/
470  Dim_thr_counter++;
471 }
pthread_mutex_t Global_DIM_mutex
Definition: dim_thr.c:448
pthread_t Dim_thr_locker
Definition: dim_thr.c:441
int Dim_thr_counter
Definition: dim_thr.c:442

+ Here is the caller graph for this function: