Searched refs:mutex (Results 1 - 11 of 11) sorted by relevance
/ast/src/lib/libast/sfio/ |
H A D | sfmutex.c | 48 if(!f->mutex) 53 f->mutex = vtmtxopen(NIL(Vtmutex_t*), VT_INIT); 55 if(!f->mutex) 60 return vtmtxlock(f->mutex); 62 return vtmtxtrylock(f->mutex); 64 return vtmtxunlock(f->mutex); 66 return vtmtxclrlock(f->mutex);
|
H A D | sfextern.c | 33 (void)vtmtxopen(&_Sfpool.mutex, VT_INIT); 34 (void)vtmtxopen(sfstdin->mutex, VT_INIT); 35 (void)vtmtxopen(sfstdout->mutex, VT_INIT); 36 (void)vtmtxopen(sfstderr->mutex, VT_INIT);
|
H A D | sfnew.c | 54 f->mutex = NIL(Vtmutex_t*); 55 SFCLEAR(f, f->mutex); 90 SFCLEAR(f, f->mutex); 103 /* create a mutex */ 104 if(!f->mutex) 105 f->mutex = vtmtxopen(NIL(Vtmutex_t*), VT_INIT);
|
H A D | sfstack.c | 91 /* but the reserved buffer and mutex must remain the same */ 93 mtx = f1->mutex; f1->mutex = f2->mutex; f2->mutex = mtx;
|
H A D | sfclose.c | 150 /* destroy the mutex */ 151 if(f->mutex) 152 { (void)vtmtxclrlock(f->mutex); 154 { (void)vtmtxclose(f->mutex); 155 f->mutex = NIL(Vtmutex_t*);
|
H A D | sftmp.c | 322 if(newf.mutex) /* don't need a mutex for this stream */ 323 { (void)vtmtxclrlock(newf.mutex); 324 (void)vtmtxclose(newf.mutex); 325 newf.mutex = NIL(Vtmutex_t*); 340 f->mutex = savf.mutex;
|
H A D | sfpool.c | 78 (void)vtmtxopen(&p->mutex, VT_INIT); /* initialize mutex */
|
H A D | sfhdr.h | 405 #define POOLMTXLOCK(p) ( vtmtxlock(&(p)->mutex) ) 406 #define POOLMTXUNLOCK(p) ( vtmtxunlock(&(p)->mutex) ) 498 #define SF_PRIVATE 00000100 /* private stream to Sfio, no mutex */ 684 Vtmutex_t mutex; /* mutex lock object */ member in struct:_sfpool_s
|
/ast/src/lib/libtaso/ |
H A D | taso.c | 80 Aso_mutex_t* mutex = (Aso_mutex_t*)data; local 82 if (mutex) 84 pthread_mutex_destroy(&mutex->lock); 85 free(mutex); 88 if (!(mutex = (Aso_mutex_t*)malloc(sizeof(Aso_mutex_t)))) 90 pthread_mutex_init(&mutex->lock, 0); 91 return mutex; 97 Aso_mutex_t* mutex = (Aso_mutex_t*)data; local 100 pthread_mutex_unlock(&mutex->lock); 102 pthread_mutex_lock(&mutex [all...] |
/ast/src/lib/libast/include/ |
H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 72 #define SFNEW(data,size,file,type,disc,mutex) \ 93 (mutex), /* mutex */ \ 121 (f)->mutex = (mtx), /* mutex */ \
|
/ast/src/lib/libast/misc/ |
H A D | optget.c | 2386 int mutex; local 2884 mutex = 0; 3050 mutex++; 3136 if (mutex) 3140 if (!(mutex & 1)) 3142 mutex--; 3149 mutex--; 3235 if (style <= STYLE_short && !y && !mutex || style == STYLE_posix) 3265 if (mutex & 1) 3267 mutex [all...] |
Completed in 34 milliseconds