Changeset 137:5510f73e1737 in freeDiameter
- Timestamp:
- Dec 16, 2009, 5:04:27 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/peers.c
r86 r137 301 301 302 302 /* Allow the PSM(s) to execute */ 303 pthread_yield();303 sched_yield(); 304 304 305 305 /* Remove zombie peers */ -
include/freeDiameter/libfreeDiameter.h
r135 r137 60 60 61 61 #include <pthread.h> 62 #include <sched.h> 62 63 #include <string.h> 63 64 #include <assert.h> -
libfreeDiameter/fifo.c
r43 r137 162 162 CHECK_POSIX( pthread_cond_signal(&q->cond) ); 163 163 CHECK_POSIX( pthread_mutex_unlock( &q->mtx )); 164 pthread_yield();164 sched_yield(); 165 165 CHECK_POSIX( pthread_mutex_lock( &q->mtx ) ); 166 166 ASSERT( ++loops < 10 ); /* detect infinite loops */ … … 210 210 CHECK_POSIX( pthread_cond_signal(&old->cond) ); 211 211 CHECK_POSIX( pthread_mutex_unlock( &old->mtx )); 212 pthread_yield();212 sched_yield(); 213 213 CHECK_POSIX( pthread_mutex_lock( &old->mtx ) ); 214 214 ASSERT( ++loops < 10 ); /* detect infinite loops */
Note: See TracChangeset
for help on using the changeset viewer.