Searched refs:locktype (Results 1 - 15 of 15) sorted by relevance

/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devthread.c165 unsigned locktype; member in struct:debug_lock
174 debug_lock_alloc(unsigned locktype) argument
181 locktype|EVTHREAD_LOCKTYPE_RECURSIVE))) {
189 result->locktype = locktype;
196 debug_lock_free(void *lock_, unsigned locktype) argument
200 EVUTIL_ASSERT(locktype == lock->locktype);
204 lock->locktype|EVTHREAD_LOCKTYPE_RECURSIVE);
217 if (!(lock->locktype
345 evthread_setup_global_lock_(void *lock_, unsigned locktype, int enable_locks) argument
407 evthreadimpl_lock_alloc_(unsigned locktype) argument
413 evthreadimpl_lock_free_(void *lock, unsigned locktype) argument
[all...]
H A Devthread-internal.h77 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \
79 evthread_lock_fns_.alloc(locktype) : NULL)
82 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \
86 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
186 void *evthreadimpl_lock_alloc_(unsigned locktype);
187 void evthreadimpl_lock_free_(void *lock, unsigned locktype);
203 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \
204 ((lockvar) = evthreadimpl_lock_alloc_(locktype))
206 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \
210 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \
[all...]
H A Devthread_pthread.c45 evthread_posix_lock_alloc(unsigned locktype) argument
51 if (locktype & EVTHREAD_LOCKTYPE_RECURSIVE)
61 evthread_posix_lock_free(void *lock_, unsigned locktype) argument
H A Devthread_win32.c51 evthread_win32_lock_create(unsigned locktype) argument
64 evthread_win32_lock_free(void *lock_, unsigned locktype) argument
/freebsd-11-stable/contrib/ntp/sntp/libevent/include/event2/
H A Dthread.h107 /** Function to allocate and initialize new lock of type 'locktype'.
109 void *(*alloc)(unsigned locktype);
111 * with type 'locktype'. */
112 void (*free)(void *lock, unsigned locktype);
/freebsd-11-stable/sys/nfs/
H A Dnfs_fha.h85 int locktype; member in struct:fha_info
H A Dnfs_fha.c136 i->locktype = LK_EXCLUSIVE;
271 fha_hash_entry_add_op(struct fha_hash_entry *fhe, int locktype, int count) argument
275 if (LK_EXCLUSIVE == locktype)
410 req->rq_p2 = i.locktype;
419 fha_hash_entry_add_op(fhe, i.locktype, 1);
/freebsd-11-stable/sys/sys/
H A Dbuf.h276 #define BUF_LOCK(bp, locktype, interlock) \
277 _lockmgr_args_rw(&(bp)->b_lock, (locktype), (interlock), \
284 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \
285 _lockmgr_args_rw(&(bp)->b_lock, (locktype) | LK_TIMELOCK, \
/freebsd-11-stable/sys/fs/nfsserver/
H A Dnfs_fha_new.c244 info->locktype = LK_SHARED;
260 info->locktype = LK_EXCLUSIVE;
/freebsd-11-stable/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-11-stable/sys/vm/
H A Dvm_mmap.c1230 int error, flags, locktype; local
1234 locktype = LK_EXCLUSIVE;
1236 locktype = LK_SHARED;
1237 if ((error = vget(vp, locktype, td)) != 0)
1258 error = vget(vp, locktype, td);
1262 if (locktype == LK_EXCLUSIVE) {
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dregress_bufferevent.c234 static void *trace_lock_alloc(unsigned locktype) argument
239 void *lock = lu_base.cbs.alloc(locktype);
243 static void trace_lock_free(void *lock_, unsigned locktype) argument
251 lu_base.cbs.free(lock_, locktype);
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dio.c2558 int locktype = APR_FLOCK_SHARED;
2563 locktype = APR_FLOCK_EXCLUSIVE;
2565 locktype |= APR_FLOCK_NONBLOCK;
2574 apr_err = apr_file_lock(lockfile_handle, locktype);
2589 FILE_LOCK_RETRY_LOOP(apr_err, apr_file_lock(lockfile_handle, locktype));
2593 switch (locktype & APR_FLOCK_TYPEMASK)
2650 int locktype = APR_FLOCK_SHARED;
2655 locktype = APR_FLOCK_EXCLUSIVE;
2658 if (locktype == APR_FLOCK_EXCLUSIVE)
2661 /* locktype i
2552 int locktype = APR_FLOCK_SHARED; local
2644 int locktype = APR_FLOCK_SHARED; local
[all...]
/freebsd-11-stable/crypto/heimdal/lib/sqlite/
H A Dsqlite3.c22517 int locktype; /* Type of lock currently held on this file */ member in struct:os2File
22555 pFile->locktype = NO_LOCK;
22579 OSTRACE(( "READ %d lock=%d\n", pFile->h, pFile->locktype ));
22612 OSTRACE(( "WRITE %d lock=%d\n", pFile->h, pFile->locktype ));
22665 OSTRACE(( "SYNC %d lock=%d\n", pFile->h, pFile->locktype ));
22738 ** Lock the file with the lock specified by parameter locktype - one
22763 static int os2Lock( sqlite3_file *id, int locktype ){
22766 int newLocktype; /* Set pFile->locktype to this value before exiting */
22774 OSTRACE(( "LOCK %d %d was %d\n", pFile->h, locktype, pFile->locktype ));
31665 u8 locktype; /* Type of lock currently held on this file */ member in struct:winFile
32971 winLock(sqlite3_file *id, int locktype) argument
33127 winUnlock(sqlite3_file *id, int locktype) argument
41169 pager_wait_on_lock(Pager *pPager, int locktype) argument
[all...]
/freebsd-11-stable/contrib/sqlite3/
H A Dsqlite3.c42375 u8 locktype; /* Type of lock currently held on this file */ member in struct:winFile
45344 winLock(sqlite3_file *id, int locktype) argument
45523 winUnlock(sqlite3_file *id, int locktype) argument
45573 winNolockLock(sqlite3_file *id, int locktype) argument
45585 winNolockUnlock(sqlite3_file *id, int locktype) argument
56021 pager_wait_on_lock(Pager *pPager, int locktype) argument
[all...]

Completed in 1031 milliseconds