Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. void clean_thread(void *arg) {
  2. //  printf("clean_thread=%d, alive=%d\n", abs((int) pthread_self()), alive_threads);
  3.     if (pthread_mutex_lock(&readuce_alive_mutex) != 0) {
  4.         err_exit("Błąd: pthread_mutex_lock(readuce_alive_mutex)");
  5.     }
  6.     alive_threads--;
  7.     if (pthread_mutex_unlock(&readuce_alive_mutex) != 0) {
  8.         err_exit("Błąd: pthread_mutex_unlock(readuce_alive_mutex)");
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement