Home
last modified time | relevance | path

Searched refs:mutexp (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/lib/libadutils/common/
H A Dadutils_threadfuncs.c51 static void adutils_mutex_free(void *mutexp);
128 pthread_mutex_t *mutexp; in adutils_mutex_alloc() local
131 mutexp = malloc(sizeof (pthread_mutex_t)); in adutils_mutex_alloc()
132 if (mutexp == NULL) { in adutils_mutex_alloc()
139 rc = pthread_mutex_init(mutexp, NULL); in adutils_mutex_alloc()
145 free(mutexp); in adutils_mutex_alloc()
148 return (mutexp); in adutils_mutex_alloc()
156 adutils_mutex_free(void *mutexp) in adutils_mutex_free() argument
158 (void) pthread_mutex_destroy((pthread_mutex_t *)mutexp); in adutils_mutex_free()
159 free(mutexp); in adutils_mutex_free()
/illumos-gate/usr/src/cmd/sendmail/db/mp/
H A Dmp_bh.c59 LOCKHANDLE(dbmp, dbmp->mutexp);
65 UNLOCKHANDLE(dbmp, dbmp->mutexp);
77 UNLOCKHANDLE(dbmp, dbmp->mutexp);
88 LOCKHANDLE(dbmp, dbmp->mutexp);
93 UNLOCKHANDLE(dbmp, dbmp->mutexp);
132 LOCKHANDLE(dbmp, dbmp->mutexp);
134 UNLOCKHANDLE(dbmp, dbmp->mutexp);
182 db_io.mutexp =
339 LOCKHANDLE(dbmp, dbmfp->mutexp);
354 db_io.mutexp = F_ISSET(dbmp, MP_LOCKHANDLE) ? dbmfp->mutexp : NULL;
[all …]
H A Dmp_open.c87 sizeof(db_mutex_t), NULL, &dbmp->mutexp);
93 LOCKINIT(dbmp, dbmp->mutexp);
134 __db_shalloc_free(dbmp->addr, dbmp->mutexp);
216 LOCKHANDLE(dbmp, dbmp->mutexp);
218 UNLOCKHANDLE(dbmp, dbmp->mutexp);
H A Dmp_fopen.c214 __memp_alloc(dbmp, sizeof(db_mutex_t), NULL, &dbmfp->mutexp)) == 0)
215 LOCKINIT(dbmp, dbmfp->mutexp);
273 LOCKHANDLE(dbmp, dbmp->mutexp);
275 UNLOCKHANDLE(dbmp, dbmp->mutexp);
423 LOCKHANDLE(dbmp, dbmp->mutexp);
451 UNLOCKHANDLE(dbmp, dbmp->mutexp);
455 UNLOCKHANDLE(dbmp, dbmp->mutexp);
480 if (dbmfp->mutexp != NULL) {
482 __db_shalloc_free(dbmp->addr, dbmfp->mutexp);
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dmp.h81 #define LOCKINIT(dbmp, mutexp) \ argument
83 (void)__db_mutex_init(mutexp, \
84 MUTEX_LOCK_OFFSET((dbmp)->reginfo.addr, mutexp))
86 #define LOCKHANDLE(dbmp, mutexp) \ argument
88 (void)__db_mutex_lock(mutexp, (dbmp)->reginfo.fd)
89 #define UNLOCKHANDLE(dbmp, mutexp) \ argument
91 (void)__db_mutex_unlock(mutexp, (dbmp)->reginfo.fd)
121 db_mutex_t *mutexp; /* Structure lock. */ member
163 db_mutex_t *mutexp; /* Structure lock. */ member
H A Dtxn.h73 db_mutex_t *mutexp; /* Synchronization. */ member
121 (void)__db_mutex_lock((tmgrp)->mutexp, -1)
124 (void)__db_mutex_unlock((tmgrp)->mutexp, -1)
H A Dlog.h32 (void)__db_mutex_lock((dblp)->mutexp, -1)
35 (void)__db_mutex_unlock((dblp)->mutexp, -1);
65 db_mutex_t *mutexp; /* Mutex for thread protection. */ member
H A Dos.h19 db_mutex_t *mutexp; /* Mutex to lock. */ member
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dopen.c103 LDAP_MUTEX_T *mutexp; in pthread_mutex_alloc() local
106 pthread_mutex_init( mutexp, NULL ); in pthread_mutex_alloc()
108 return( mutexp ); in pthread_mutex_alloc()
121 pthread_mutex_free( void *mutexp ) in pthread_mutex_free() argument
124 free( mutexp ); in pthread_mutex_free()
193 pthread_mutex_t *mutexp; in pthread_mutex_alloc() local
196 pthread_mutex_init( mutexp, NULL ); in pthread_mutex_alloc()
198 return( mutexp ); in pthread_mutex_alloc()
202 pthread_mutex_free( void *mutexp ) in pthread_mutex_free() argument
204 pthread_mutex_destroy( (pthread_mutex_t *) mutexp ); in pthread_mutex_free()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_rw.c57 if (db_iop->mutexp != NULL)
58 (void)__db_mutex_lock(db_iop->mutexp, db_iop->fd_lock);
74 err: if (db_iop->mutexp != NULL)
75 (void)__db_mutex_unlock(db_iop->mutexp, db_iop->fd_lock);
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog.c123 sizeof(db_mutex_t), MUTEX_ALIGNMENT, &dblp->mutexp)) != 0)
125 (void)__db_mutex_init(dblp->mutexp, 0);
141 if (dblp->mutexp != NULL)
142 __db_shalloc_free(dblp->addr, dblp->mutexp);
444 if (dblp->mutexp != NULL) {
446 __db_shalloc_free(dblp->addr, dblp->mutexp);
/illumos-gate/usr/src/cmd/sendmail/db/txn/
H A Dtxn.c144 tmgrp->mutexp = NULL;
187 MUTEX_ALIGNMENT, &tmgrp->mutexp)) == 0)
193 __db_mutex_init(tmgrp->mutexp, 0);
203 if (tmgrp->mutexp != NULL)
204 __db_shalloc_free(tmgrp->mem, tmgrp->mutexp);
535 if (tmgrp->mutexp != NULL) {
537 __db_shalloc_free(tmgrp->mem, tmgrp->mutexp);
896 mutex_offset = tp->mutexp != NULL ?
897 (u_int8_t *)tp->mutexp - (u_int8_t *)tp->region : 0;
907 tp->mutexp = mutex_offset != 0 ?
/illumos-gate/usr/src/cmd/sendmail/db/
H A Ddb_int.h187 (void)__db_mutex_lock((db_mutex_t *)(dbp)->mutexp, -1);
190 (void)__db_mutex_unlock((db_mutex_t *)(dbp)->mutexp, -1);
H A Ddb.h404 void *mutexp; /* Synchronization for free threading */ member
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_connmgmt.c176 mutex_t *mutexp = NULL; in ns_mutex_alloc() local
178 if ((mutexp = malloc(sizeof (mutex_t))) != NULL) { in ns_mutex_alloc()
179 if (mutex_init(mutexp, USYNC_THREAD, NULL) != 0) { in ns_mutex_alloc()
180 free(mutexp); in ns_mutex_alloc()
181 mutexp = NULL; in ns_mutex_alloc()
184 return (mutexp); in ns_mutex_alloc()
189 ns_mutex_free(void *mutexp) in ns_mutex_free() argument
191 (void) mutex_destroy((mutex_t *)mutexp); in ns_mutex_free()
192 free(mutexp); in ns_mutex_free()
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb.c633 sizeof(db_mutex_t), NULL, &dbp->mutexp)) != 0)
639 (void)__db_mutex_init(dbp->mutexp, 0);