/osnet-11/usr/src/lib/libast/common/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 | 142 /* destroy the mutex */ 143 if(f->mutex) 144 { (void)vtmtxclrlock(f->mutex); 146 { (void)vtmtxclose(f->mutex); 147 f->mutex = NIL(Vtmutex_t*);
|
H A D | sftmp.c | 325 if(newf.mutex) /* don't need a mutex for this stream */ 326 { (void)vtmtxclrlock(newf.mutex); 327 (void)vtmtxclose(newf.mutex); 328 newf.mutex = NIL(Vtmutex_t*); 343 f->mutex = savf.mutex;
|
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | Lockable.h | 38 static void lock(pthread_mutex_t* mutex); 39 static void unlock(pthread_mutex_t* mutex); 47 pthread_mutex_t mutex; member in class:Lockable
|
H A D | Lockable.cc | 43 if (pthread_mutex_init(&mutex, NULL)) { 51 if (pthread_mutex_destroy(&mutex)) { 61 unlock(&mutex); 65 * @memo Unlock a given mutex lock 79 lock(&mutex); 83 * @memo Lock the given mutex lock 85 * @param myMutex The mutex lock to take
|
/osnet-11/usr/src/lib/libnisdb/ |
H A D | nisdb_rw.c | 50 if ((ret = mutex_init(&rw->mutex, USYNC_THREAD, 0)) != 0) 116 if ((ret = mutex_lock(&rw->mutex)) != 0) 130 (void) mutex_unlock(&rw->mutex); 145 if ((ret = mutex_lock(&rw->mutex)) != 0) 159 (void) mutex_unlock(&rw->mutex); 184 if ((ret = mutex_lock(&rw->mutex)) != 0) 188 (void) mutex_unlock(&rw->mutex); 197 return (mutex_unlock(&rw->mutex)); 202 * all other readers are blocked waiting for the mutex. 236 * - N readers, but all blocked on the mutex [all...] |
/osnet-11/usr/src/lib/libast/amd64/include/ast/ |
H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
/osnet-11/usr/src/lib/libast/common/include/ |
H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
/osnet-11/usr/src/lib/libast/i386/include/ast/ |
H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
/osnet-11/usr/src/lib/libast/sparc/include/ast/ |
H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
/osnet-11/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | sfio_t.h | 45 Void_t* mutex; /* mutex for thread-safety */ \ 65 #define SFNEW(data,size,file,type,disc,mutex) \ 86 (mutex), /* mutex */ \ 114 (f)->mutex = (mtx), /* mutex */ \
|
/osnet-11/usr/src/lib/libumem/common/ |
H A D | stub_stand.c | 50 cond_wait(cond_t *cv, mutex_t *mutex) argument
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | util_errmap.c | 149 static k5_mutex_t mutex = K5_MUTEX_PARTIAL_INITIALIZER; variable 159 err = k5_mutex_finish_init(&mutex); 182 k5_mutex_destroy(&mutex); 204 err = k5_mutex_lock(&mutex); 215 k5_mutex_unlock(&mutex); 244 k5_mutex_unlock(&mutex); 248 k5_mutex_unlock(&mutex); 282 err = k5_mutex_lock(&mutex); 286 k5_mutex_unlock(&mutex);
|
/osnet-11/usr/src/lib/libidmap/common/ |
H A D | idmap_cache.c | 133 pthread_mutex_t mutex; member in struct:sid2uid_gid_cache 145 pthread_mutex_t mutex; member in struct:pid2sid_winname_cache 157 pthread_mutex_t mutex; member in struct:winname2uid_gid_cache 292 (void) pthread_mutex_init(&idmap_cache.sid2uid_gid.mutex, NULL); 304 (void) pthread_mutex_init(&idmap_cache.uid2sid_winname.mutex, NULL); 317 (void) pthread_mutex_init(&idmap_cache.gid2sid_winname.mutex, NULL); 330 (void) pthread_mutex_init(&idmap_cache.winname2uid_gid.mutex, NULL); 351 (void) pthread_mutex_lock(&idmap_cache.sid2uid_gid.mutex); 369 (void) pthread_mutex_unlock(&idmap_cache.sid2uid_gid.mutex); 372 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex); [all...] |
/osnet-11/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-threads.c | 143 static void prldap_mutex_free( void *mutex ); 144 static int prldap_mutex_lock( void *mutex ); 145 static int prldap_mutex_unlock( void *mutex ); 238 prldap_mutex_free( void *mutex ) 240 PR_DestroyLock( (PRLock *)mutex ); 245 prldap_mutex_lock( void *mutex ) 247 PR_Lock( (PRLock *)mutex ); 253 prldap_mutex_unlock( void *mutex ) 255 if ( PR_Unlock( (PRLock *)mutex ) == PR_FAILURE ) {
|
/osnet-11/usr/src/lib/libc/sparc/sys/ |
H A D | _lwp_mutex_unlock.s | 46 ! &mutex)
|
/osnet-11/usr/src/cmd/sendmail/db/include/ |
H A D | mp.h | 32 * Locking a handle mutex to provide concurrency for DB_THREAD operations. 33 * Locking the region mutex to provide mutual exclusion while reading and 104 (void)__db_mutex_lock(&(bhp)->mutex, (dbmp)->reginfo.fd) 107 (void)__db_mutex_unlock(&(bhp)->mutex, (dbmp)->reginfo.fd) 271 db_mutex_t mutex; /* Structure lock. */ member in struct:__bh
|
/osnet-11/usr/src/cmd/sendmail/db/ |
H A D | Makefile | 51 mp_open.o mp_pr.o mp_region.o mp_sync.o mutex.o os_abs.o os_alloc.o \ 111 mutex%.o: $(srcdir)/mutex/mutex%.c
|
/osnet-11/usr/src/lib/libc/port/threads/ |
H A D | pthr_mutex.c | 32 * pthread_mutexattr_init: allocates the mutex attribute object and 52 * pthread_mutexattr_destroy: frees the mutex attribute object and 168 * pthread_mutexattr_setrobust: set the mutex robust attribute. 185 * pthread_mutexattr_getrobust: get the mutex robust attribute. 202 * pthread_mutex_init: Initializes the mutex object. It copies the 207 pthread_mutex_init(pthread_mutex_t *_RESTRICT_KYWD mutex, argument 229 return (mutex_init((mutex_t *)mutex, type, &prioceiling)); 235 * The process of locking the mutex need not 241 pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int ceil, int *oceil) argument 243 mutex_t *mp = (mutex_t *)mutex; [all...] |
/osnet-11/usr/src/lib/libsasl/include/ |
H A D | sasl.h | 280 * mutex functions which may optionally be replaced: 281 * sasl_mutex_alloc allocates a mutex structure 282 * sasl_mutex_lock blocks until mutex locked 285 * sasl_mutex_unlock unlocks mutex if it's locked 288 * sasl_mutex_free frees a mutex structure 291 typedef int sasl_mutex_lock_t(void *mutex); 292 typedef int sasl_mutex_unlock_t(void *mutex); 293 typedef void sasl_mutex_free_t(void *mutex);
|
/osnet-11/usr/src/lib/libsasl/lib/ |
H A D | common.c | 125 pthread_mutex_t *mutex = local 128 if (mutex != NULL) { 129 if (pthread_mutex_init(mutex, NULL) != 0) { 130 free(mutex); 131 mutex = NULL; 134 return (mutex); 137 static int sasl_mutex_lock(void *mutex) argument 141 if (mutex != NULL) 142 ret = pthread_mutex_lock((pthread_mutex_t *)mutex); 147 static int sasl_mutex_unlock(void *mutex) argument 1962 sasl_mutex_utils_t mutex; local [all...] |
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | thread.h | 27 MUTEX_UNLOCK(&(t)->mutex); \ 275 /* DETACH(t) must only be called while holding t->mutex */ 281 MUTEX_UNLOCK(&(t)->mutex); \ 399 /* ThrSTATE(t) and ThrSETSTATE(t) must only be called while holding t->mutex */ 409 perl_mutex mutex; /* Protects all other fields */ member in struct:condpair 415 #define MgMUTEXP(mg) (&((condpair_t *)(mg->mg_ptr))->mutex)
|