Home
last modified time | relevance | path

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

/freebsd-13.1/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.h77 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
79 evthread_lock_fns_.alloc(locktype) : NULL)
82 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
86 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
186 void *evthreadimpl_lock_alloc_(unsigned locktype);
203 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
204 ((lockvar) = evthreadimpl_lock_alloc_(locktype))
206 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
210 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \
364 #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-13.1/contrib/ntp/sntp/libevent/
H A Devthread.c165 unsigned locktype; member
174 debug_lock_alloc(unsigned locktype) in debug_lock_alloc() argument
189 result->locktype = locktype; in debug_lock_alloc()
200 EVUTIL_ASSERT(locktype == lock->locktype); in debug_lock_free()
356 return debug_lock_alloc(locktype); in evthread_setup_global_lock_()
365 return debug_lock_alloc(locktype); in evthread_setup_global_lock_()
373 lock->locktype = locktype; in evthread_setup_global_lock_()
386 EVUTIL_ASSERT(lock->locktype == locktype); in evthread_setup_global_lock_()
389 locktype|EVTHREAD_LOCKTYPE_RECURSIVE); in evthread_setup_global_lock_()
407 evthreadimpl_lock_alloc_(unsigned locktype) in evthreadimpl_lock_alloc_() argument
[all …]
H A Devthread-internal.h77 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
79 evthread_lock_fns_.alloc(locktype) : NULL)
82 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
86 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
186 void *evthreadimpl_lock_alloc_(unsigned locktype);
203 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
204 ((lockvar) = evthreadimpl_lock_alloc_(locktype))
206 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
210 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \
364 #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-13.1/contrib/ntp/sntp/libevent/include/event2/
H A Dthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/freebsd-13.1/contrib/libevent/include/event2/
H A Dthread.h109 void *(*alloc)(unsigned locktype);
112 void (*free)(void *lock, unsigned locktype);
/freebsd-13.1/sys/fs/nfsserver/
H A Dnfs_fha_new.c280 info->locktype = LK_SHARED; in fhanew_set_locktype()
296 info->locktype = LK_EXCLUSIVE; in fhanew_set_locktype()
322 i->locktype = LK_EXCLUSIVE; in fha_extract_info()
455 fha_hash_entry_add_op(struct fha_hash_entry *fhe, int locktype, int count) in fha_hash_entry_add_op() argument
459 if (LK_EXCLUSIVE == locktype) in fha_hash_entry_add_op()
588 req->rq_p2 = i.locktype; in fhanew_assign()
597 fha_hash_entry_add_op(fhe, i.locktype, 1); in fhanew_assign()
H A Dnfs_fha_new.h91 int locktype; member
/freebsd-13.1/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-13.1/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-13.1/contrib/ntp/sntp/libevent/test/
H A Dregress_bufferevent.c234 static void *trace_lock_alloc(unsigned locktype) in trace_lock_alloc() argument
239 void *lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
243 static void trace_lock_free(void *lock_, unsigned locktype) in trace_lock_free() argument
251 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
/freebsd-13.1/contrib/libevent/test/
H A Dregress_bufferevent.c241 static void *trace_lock_alloc(unsigned locktype) in trace_lock_alloc() argument
247 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
251 static void trace_lock_free(void *lock_, unsigned locktype) in trace_lock_free() argument
258 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
/freebsd-13.1/contrib/subversion/subversion/libsvn_subr/
H A Dio.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.1/contrib/sqlite3/
H A Dsqlite3.c45390 pFile->locktype));
45614 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
45620 if( pFile->locktype>=locktype ){
45633 assert( pFile->locktype!=NO_LOCK || locktype==SHARED_LOCK );
45635 assert( locktype!=RESERVED_LOCK || pFile->locktype==SHARED_LOCK );
45643 || (locktype==EXCLUSIVE_LOCK && pFile->locktype<=RESERVED_LOCK)
45790 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
45791 type = pFile->locktype;
45810 pFile->locktype = (u8)locktype;
45835 UNUSED_PARAMETER(locktype);
[all …]