Home
last modified time | relevance | path

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

/freebsd-13-stable/contrib/libevent/
HDevthread.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 …]
HDevthread-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 …]
HDevthread_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
HDevthread_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
/freebsd-13-stable/contrib/ntp/sntp/libevent/
HDevthread.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 …]
HDevthread-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 …]
HDevthread_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
HDevthread_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
/freebsd-13-stable/contrib/ntp/sntp/libevent/include/event2/
HDthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/freebsd-13-stable/contrib/libevent/include/event2/
HDthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/freebsd-13-stable/sys/fs/nfsserver/
HDnfs_fha_new.c268 info->locktype = LK_SHARED; in fhanew_set_locktype()
284 info->locktype = LK_EXCLUSIVE; in fhanew_set_locktype()
310 i->locktype = LK_EXCLUSIVE; in fha_extract_info()
443 fha_hash_entry_add_op(struct fha_hash_entry *fhe, int locktype, int count) in fha_hash_entry_add_op() argument
447 if (LK_EXCLUSIVE == locktype) in fha_hash_entry_add_op()
578 req->rq_p2 = i.locktype; in fhanew_assign()
587 fha_hash_entry_add_op(fhe, i.locktype, 1); in fhanew_assign()
HDnfs_fha_new.h90 int locktype; member
/freebsd-13-stable/sys/sys/
HDbuf.h305 #define BUF_LOCK(bp, locktype, interlock) \ argument
306 _lockmgr_args_rw(&(bp)->b_lock, (locktype), (interlock), \
313 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \ argument
314 _lockmgr_args_rw(&(bp)->b_lock, (locktype) | LK_TIMELOCK, \
/freebsd-13-stable/contrib/sendmail/libsmutil/
HDsafefile.c959 int locktype; local
963 locktype = LOCK_EX;
965 locktype = LOCK_SH;
967 locktype |= LOCK_NB;
969 if (!lockfile(fd, filename, NULL, locktype))
/freebsd-13-stable/contrib/ntp/sntp/libevent/test/
HDregress_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()
/freebsd-13-stable/contrib/libevent/test/
HDregress_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()
/freebsd-13-stable/contrib/subversion/subversion/libsvn_subr/
HDio.c2552 int locktype = APR_FLOCK_SHARED; in svn_io_lock_open_file() local
2557 locktype = APR_FLOCK_EXCLUSIVE; in svn_io_lock_open_file()
2559 locktype |= APR_FLOCK_NONBLOCK; in svn_io_lock_open_file()
2568 apr_err = apr_file_lock(lockfile_handle, locktype); in svn_io_lock_open_file()
2583 FILE_LOCK_RETRY_LOOP(apr_err, apr_file_lock(lockfile_handle, locktype)); in svn_io_lock_open_file()
2587 switch (locktype & APR_FLOCK_TYPEMASK) in svn_io_lock_open_file()
2644 int locktype = APR_FLOCK_SHARED; in svn_io_file_lock2() local
2649 locktype = APR_FLOCK_EXCLUSIVE; in svn_io_file_lock2()
2652 if (locktype == APR_FLOCK_EXCLUSIVE) in svn_io_file_lock2()
/freebsd-13-stable/contrib/sqlite3/
HDsqlite3.c46918 u8 locktype; /* Type of lock currently held on this file */
49390 pFile->h, pBuf, amt, offset, pFile->locktype));
49468 pFile->h, pBuf, amt, offset, pFile->locktype));
49591 osGetCurrentProcessId(), pFile, pFile->h, nByte, pFile->locktype));
49680 pFile->locktype));
49814 OSTRACE(("READ-LOCK file=%p, lock=%d\n", pFile->h, pFile->locktype));
49850 OSTRACE(("READ-UNLOCK file=%p, lock=%d\n", pFile->h, pFile->locktype));
49894 static int winLock(sqlite3_file *id, int locktype){
49904 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
49910 if( pFile->locktype>=locktype ){
[all …]