TEXT   220
void thr2 void arg
Guest on 23rd December 2024 02:32:33 AM


  1. void* thr2 (void* arg)
  2. {
  3.   while(!release_thr1);
  4.  
  5.   usecount = usecount + 1;
  6.  
  7.   if (locked)
  8.     return 0;
  9.   locked = 1;
  10.   flag1 = 1;
  11.   return 0;
  12. }

Raw Paste

Login or Register to edit or fork this paste. It's free.