Changeset 27435 for trunk/Ohana/src/opihi/pantasks/thread_locks.c
- Timestamp:
- Mar 24, 2010, 11:22:25 AM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/pantasks/thread_locks.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/20091201/Ohana merged eligible /branches/eam_branches/largefiles.20100314/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/opihi/pantasks/thread_locks.c
r23530 r27435 4 4 static pthread_mutex_t ClientMutex = PTHREAD_MUTEX_INITIALIZER; 5 5 6 void ClientLock ( ) {6 void ClientLock (void) { 7 7 pthread_mutex_lock (&ClientMutex); 8 8 } 9 9 10 void ClientUnlock ( ) {10 void ClientUnlock (void) { 11 11 pthread_mutex_unlock (&ClientMutex); 12 12 } … … 15 15 static pthread_mutex_t CommandMutex = PTHREAD_MUTEX_INITIALIZER; 16 16 17 void CommandLock ( ) {17 void CommandLock (void) { 18 18 // fprintf (stderr, "command lock\n"); 19 19 pthread_mutex_lock (&CommandMutex); 20 20 } 21 21 22 void CommandUnlock ( ) {22 void CommandUnlock (void) { 23 23 // fprintf (stderr, "command unlock\n"); 24 24 pthread_mutex_unlock (&CommandMutex); … … 28 28 static pthread_mutex_t ControlMutex = PTHREAD_MUTEX_INITIALIZER; 29 29 30 void ControlLock (c har *func) {30 void ControlLock (const char *func) { 31 31 // fprintf (stderr, "control lock %s\n", func); 32 32 pthread_mutex_lock (&ControlMutex); 33 33 } 34 34 35 void ControlUnlock (c har *func) {35 void ControlUnlock (const char *func) { 36 36 // fprintf (stderr, "control unlock %s\n", func); 37 37 pthread_mutex_unlock (&ControlMutex); … … 41 41 static pthread_mutex_t JobTaskMutex = PTHREAD_MUTEX_INITIALIZER; 42 42 43 void JobTaskLock ( ) {43 void JobTaskLock (void) { 44 44 // fprintf (stderr, "jobtask lock\n"); 45 45 pthread_mutex_lock (&JobTaskMutex); 46 46 } 47 47 48 void JobTaskUnlock ( ) {48 void JobTaskUnlock (void) { 49 49 // fprintf (stderr, "jobtask unlock\n"); 50 50 pthread_mutex_unlock (&JobTaskMutex);
Note:
See TracChangeset
for help on using the changeset viewer.
