Home
last modified time | relevance | path

Searched refs:locktype (Results 1 – 21 of 21) sorted by relevance

/src/contrib/libevent/
H A Devthread.c186 unsigned locktype; member
195 debug_lock_alloc(unsigned locktype) in debug_lock_alloc() argument
202 locktype|EVTHREAD_LOCKTYPE_RECURSIVE))) { in debug_lock_alloc()
210 result->locktype = locktype; in debug_lock_alloc()
217 debug_lock_free(void *lock_, unsigned locktype) in debug_lock_free() argument
221 EVUTIL_ASSERT(locktype == lock->locktype); in debug_lock_free()
225 lock->locktype|EVTHREAD_LOCKTYPE_RECURSIVE); in debug_lock_free()
238 if (!(lock->locktype & EVTHREAD_LOCKTYPE_RECURSIVE)) in evthread_debug_lock_mark_locked()
254 if (lock->locktype & EVTHREAD_LOCKTYPE_READWRITE) in debug_lock_lock()
270 if (lock->locktype & EVTHREAD_LOCKTYPE_READWRITE) in evthread_debug_lock_mark_unlocked()
[all …]
H A Devthread-internal.h80 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
82 evthread_lock_fns_.alloc(locktype) : NULL)
85 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
89 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
191 void *evthreadimpl_lock_alloc_(unsigned locktype);
193 void evthreadimpl_lock_free_(void *lock, unsigned locktype);
215 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
216 ((lockvar) = evthreadimpl_lock_alloc_(locktype))
218 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
222 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \
[all …]
H A Devthread_pthread.c45 evthread_posix_lock_alloc(unsigned locktype) in evthread_posix_lock_alloc() argument
51 if (locktype & EVTHREAD_LOCKTYPE_RECURSIVE) in evthread_posix_lock_alloc()
61 evthread_posix_lock_free(void *lock_, unsigned locktype) in evthread_posix_lock_free() argument
H A Devthread_win32.c51 evthread_win32_lock_create(unsigned locktype) in evthread_win32_lock_create() argument
64 evthread_win32_lock_free(void *lock_, unsigned locktype) in evthread_win32_lock_free() argument
/src/contrib/ntp/sntp/libevent/
H A Devthread.c186 unsigned locktype; member
195 debug_lock_alloc(unsigned locktype) in debug_lock_alloc() argument
202 locktype|EVTHREAD_LOCKTYPE_RECURSIVE))) { in debug_lock_alloc()
210 result->locktype = locktype; in debug_lock_alloc()
217 debug_lock_free(void *lock_, unsigned locktype) in debug_lock_free() argument
221 EVUTIL_ASSERT(locktype == lock->locktype); in debug_lock_free()
225 lock->locktype|EVTHREAD_LOCKTYPE_RECURSIVE); in debug_lock_free()
238 if (!(lock->locktype & EVTHREAD_LOCKTYPE_RECURSIVE)) in evthread_debug_lock_mark_locked()
254 if (lock->locktype & EVTHREAD_LOCKTYPE_READWRITE) in debug_lock_lock()
270 if (lock->locktype & EVTHREAD_LOCKTYPE_READWRITE) in evthread_debug_lock_mark_unlocked()
[all …]
H A Devthread-internal.h80 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
82 evthread_lock_fns_.alloc(locktype) : NULL)
85 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
89 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
191 void *evthreadimpl_lock_alloc_(unsigned locktype);
193 void evthreadimpl_lock_free_(void *lock, unsigned locktype);
215 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
216 ((lockvar) = evthreadimpl_lock_alloc_(locktype))
218 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
222 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \
[all …]
H A Devthread_pthread.c45 evthread_posix_lock_alloc(unsigned locktype) in evthread_posix_lock_alloc() argument
51 if (locktype & EVTHREAD_LOCKTYPE_RECURSIVE) in evthread_posix_lock_alloc()
61 evthread_posix_lock_free(void *lock_, unsigned locktype) in evthread_posix_lock_free() argument
H A Devthread_win32.c51 evthread_win32_lock_create(unsigned locktype) in evthread_win32_lock_create() argument
64 evthread_win32_lock_free(void *lock_, unsigned locktype) in evthread_win32_lock_free() argument
/src/contrib/ntp/sntp/libevent/include/event2/
H A Dthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/src/contrib/libevent/include/event2/
H A Dthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/src/sys/fs/nfsserver/
H A Dnfs_fha_new.c267 info->locktype = LK_SHARED; in fhanew_set_locktype()
283 info->locktype = LK_EXCLUSIVE; in fhanew_set_locktype()
309 i->locktype = LK_EXCLUSIVE; in fha_extract_info()
442 fha_hash_entry_add_op(struct fha_hash_entry *fhe, int locktype, int count) in fha_hash_entry_add_op() argument
446 if (LK_EXCLUSIVE == locktype) in fha_hash_entry_add_op()
577 req->rq_p2 = i.locktype; in fhanew_assign()
586 fha_hash_entry_add_op(fhe, i.locktype, 1); in fhanew_assign()
H A Dnfs_fha_new.h90 int locktype; member
/src/sys/sys/
H A Dbuf.h306 #define BUF_LOCK(bp, locktype, interlock) \ argument
307 _lockmgr_args_rw(&(bp)->b_lock, (locktype), (interlock), \
314 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \ argument
315 _lockmgr_args_rw(&(bp)->b_lock, (locktype) | LK_TIMELOCK, \
/src/contrib/sendmail/libsmutil/
H A Dsafefile.c959 int locktype; local
963 locktype = LOCK_EX;
965 locktype = LOCK_SH;
967 locktype |= LOCK_NB;
969 if (!lockfile(fd, filename, NULL, locktype))
/src/sys/kern/
H A Dkern_rangelock.c104 rangelock_cheat_lock(struct rangelock *lock, int locktype, bool trylock, in rangelock_cheat_lock() argument
124 switch (locktype) { in rangelock_cheat_lock()
720 vm_ooffset_t end, int locktype) in rangelock_lock_int() argument
726 if (rangelock_cheat_lock(lock, locktype, trylock, &cookie)) in rangelock_lock_int()
730 e = rlqentry_alloc(start, end, locktype); in rangelock_lock_int()
/src/crypto/krb5/src/plugins/kdb/db2/
H A Dpolicy_db.h90 krb5_error_code osa_adb_open_and_lock(osa_adb_princ_t db, int locktype);
H A Dadb_openclose.c319 osa_adb_open_and_lock(osa_adb_princ_t db, int locktype) in osa_adb_open_and_lock() argument
323 ret = osa_adb_get_lock(db, locktype); in osa_adb_open_and_lock()
/src/contrib/libevent/test/
H A Dregress_bufferevent.c254 static void *trace_lock_alloc(unsigned locktype) in trace_lock_alloc() argument
260 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
264 static void trace_lock_free(void *lock_, unsigned locktype) in trace_lock_free() argument
271 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
/src/contrib/ntp/sntp/libevent/test/
H A Dregress_bufferevent.c254 static void *trace_lock_alloc(unsigned locktype) in trace_lock_alloc() argument
260 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
264 static void trace_lock_free(void *lock_, unsigned locktype) in trace_lock_free() argument
271 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
/src/sys/fs/fuse/
H A Dfuse_vnops.c2261 int locktype; in fuse_vnop_rename() local
2292 locktype = LK_EXCLUSIVE; /* for fuse_vnode_setparent */ in fuse_vnop_rename()
2294 locktype = LK_SHARED; in fuse_vnop_rename()
2300 if (vn_lock(fvp, locktype | LK_NOWAIT) != 0) { in fuse_vnop_rename()
/src/contrib/sqlite3/
H A Dsqlite3.c47397 u8 locktype; /* Type of lock currently held on this file */ member
50089 pFile->h, pBuf, amt, offset, pFile->locktype));
50167 pFile->h, pBuf, amt, offset, pFile->locktype));
50344 osGetCurrentProcessId(), pFile, pFile->h, nByte, pFile->locktype));
50433 pFile->locktype));
50568 OSTRACE(("READ-LOCK file=%p, lock=%d\n", pFile->h, pFile->locktype));
50604 OSTRACE(("READ-UNLOCK file=%p, lock=%d\n", pFile->h, pFile->locktype));
50648 static int winLock(sqlite3_file *id, int locktype){
50658 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
50664 if( pFile->locktype>=locktype ){
[all …]