Changeset 691:78b665400097 in freeDiameter for libfdcore/p_psm.c
- Timestamp:
- Jan 20, 2011, 7:44:27 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/p_psm.c
r688 r691 55 55 static int fd_psm_waitstart() 56 56 { 57 int ret = 0; 57 58 TRACE_ENTRY(""); 58 59 CHECK_POSIX( pthread_mutex_lock(&started_mtx) ); 59 60 awake: 60 if (! 61 if (!ret && !started) { 61 62 pthread_cleanup_push( fd_cleanup_mutex, &started_mtx ); 62 CHECK_POSIX ( pthread_cond_wait(&started_cnd, &started_mtx));63 CHECK_POSIX_DO( ret = pthread_cond_wait(&started_cnd, &started_mtx), ); 63 64 pthread_cleanup_pop( 0 ); 64 65 goto awake; 65 66 } 66 67 CHECK_POSIX( pthread_mutex_unlock(&started_mtx) ); 67 return 0;68 return ret; 68 69 } 69 70
Note: See TracChangeset
for help on using the changeset viewer.