Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/ntp/sntp/libevent/
H A Devthread.c186 unsigned locktype; member
195 debug_lock_alloc(unsigned locktype) in debug_lock_alloc() argument
210 result->locktype = locktype; in debug_lock_alloc()
221 EVUTIL_ASSERT(locktype == lock->locktype); in debug_lock_free()
377 return debug_lock_alloc(locktype); in evthread_setup_global_lock_()
386 return debug_lock_alloc(locktype); in evthread_setup_global_lock_()
394 lock->locktype = locktype; in evthread_setup_global_lock_()
407 EVUTIL_ASSERT(lock->locktype == locktype); in evthread_setup_global_lock_()
410 locktype|EVTHREAD_LOCKTYPE_RECURSIVE); in evthread_setup_global_lock_()
429 evthreadimpl_lock_alloc_(unsigned locktype) in evthreadimpl_lock_alloc_() argument
[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);
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)); \
377 #define EVTHREAD_SETUP_GLOBAL_LOCK(lockvar, locktype) \ argument
[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
/freebsd-14.2/contrib/libevent/
H A Devthread.c186 unsigned locktype; member
195 debug_lock_alloc(unsigned locktype) in debug_lock_alloc() argument
210 result->locktype = locktype; in debug_lock_alloc()
221 EVUTIL_ASSERT(locktype == lock->locktype); in debug_lock_free()
377 return debug_lock_alloc(locktype); in evthread_setup_global_lock_()
386 return debug_lock_alloc(locktype); in evthread_setup_global_lock_()
394 lock->locktype = locktype; in evthread_setup_global_lock_()
407 EVUTIL_ASSERT(lock->locktype == locktype); in evthread_setup_global_lock_()
410 locktype|EVTHREAD_LOCKTYPE_RECURSIVE); in evthread_setup_global_lock_()
429 evthreadimpl_lock_alloc_(unsigned locktype) in evthreadimpl_lock_alloc_() argument
[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);
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)); \
377 #define EVTHREAD_SETUP_GLOBAL_LOCK(lockvar, locktype) \ argument
[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
/freebsd-14.2/contrib/ntp/sntp/libevent/include/event2/
H A Dthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/freebsd-14.2/contrib/libevent/include/event2/
H A Dthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/freebsd-14.2/sys/fs/nfsserver/
H A Dnfs_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()
H A Dnfs_fha_new.h90 int locktype; member
/freebsd-14.2/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, \
/freebsd-14.2/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))
/freebsd-14.2/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()
/freebsd-14.2/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()
/freebsd-14.2/contrib/sqlite3/
H A Dsqlite3.c49680 pFile->locktype));
49904 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
49910 if( pFile->locktype>=locktype ){
49923 assert( pFile->locktype!=NO_LOCK || locktype==SHARED_LOCK );
49925 assert( locktype!=RESERVED_LOCK || pFile->locktype==SHARED_LOCK );
49933 || (locktype==EXCLUSIVE_LOCK && pFile->locktype<=RESERVED_LOCK)
50080 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
50081 type = pFile->locktype;
50100 pFile->locktype = (u8)locktype;
50125 UNUSED_PARAMETER(locktype);
[all …]