Permalink
Browse files

minor correction to mutexes

  • Loading branch information...
1 parent df30436 commit 1336f7744739168af51f29847ea0e91e12da1ffa @zoukai957 zoukai957 committed Nov 26, 2012
Showing with 4 additions and 0 deletions.
  1. +3 −0 MembershipList.c
  2. +1 −0 MembershipList.h
View
@@ -2,6 +2,9 @@
//may call these functions and there is a mutex lock called membershipListMutex
//that locks down the membershipList when it is in use
+//NOTE membershipList MUTEX (already exist in header file MUST BE INITITIALIZED
+//IN MAIN B4 USE OF ANY OF THESE FUNCTIONS!!!
+
#include "MembershipList.h"
View
@@ -7,6 +7,7 @@
//global variables
pthread_mutex_t membershipListMutex; //Mutex for when membershipList is accessed
+ //MUTEX MUST BE INITIALIZED IN MAIN B4 USE!!!
/**Node structure in linklist that holds each member of the membership
* list**/

0 comments on commit 1336f77

Please sign in to comment.