Searched refs:lock (Results 1 - 25 of 1133) sorted by relevance

1234567891011>>

/macosx-10.9.5/xnu-2422.115.4/osfmk/mach/i386/
H A Dflipc_dep.h53 * Flipc simple lock defines. These are almost completely for the use
60 * These locks may be declared by "flipc_simple_lock lock;". If they
74 #define flipc_simple_lock_init(lock) \
76 *(lock) = SIMPLE_LOCK_INITIALIZER; \
83 #define flipc_simple_lock_locked(lock) ((*lock) != SIMPLE_LOCK_INITIALIZER)
86 extern __inline__ int flipc_simple_lock_try(flipc_simple_lock *lock) argument
89 __asm__ volatile("movl $1, %0; xchgl %0, %1" : "=&r" (r), "=m" (*lock));
94 extern __inline__ void flipc_simple_lock_release(flipc_simple_lock *lock) argument
98 __asm__ volatile("xorl %0, %0; xchgl %0, %1" : "=&r" (t), "=m" (*lock));
[all...]
/macosx-10.9.5/xnu-2422.115.4/iokit/Kernel/
H A DIOLocks.cpp40 void IOLockInitWithState( IOLock * lock, IOLockState state) argument
43 lck_mtx_lock( lock);
51 void IOLockFree( IOLock * lock) argument
53 lck_mtx_free( lock, IOLockGroup);
56 lck_mtx_t * IOLockGetMachLock( IOLock * lock) argument
58 return( (lck_mtx_t *)lock);
61 int IOLockSleep( IOLock * lock, void *event, UInt32 interType) argument
63 return (int) lck_mtx_sleep(lock, LCK_SLEEP_DEFAULT, (event_t) event, (wait_interrupt_t) interType);
66 int IOLockSleepDeadline( IOLock * lock, void *event, argument
69 return (int) lck_mtx_sleep_deadline(lock, LCK_SLEEP_DEFAUL
73 IOLockWakeup(IOLock * lock, void *event, bool oneThread) argument
88 _IORecursiveLock * lock; local
118 _IORecursiveLock * lock = (_IORecursiveLock *)_lock; local
131 _IORecursiveLock * lock = (_IORecursiveLock *)_lock; local
146 _IORecursiveLock * lock = (_IORecursiveLock *)_lock; local
165 _IORecursiveLock * lock = (_IORecursiveLock *)_lock; local
177 _IORecursiveLock * lock = (_IORecursiveLock *)_lock; local
184 _IORecursiveLock * lock = (_IORecursiveLock *)_lock; local
206 _IORecursiveLock * lock = (_IORecursiveLock *)_lock; local
240 IORWLockFree( IORWLock * lock) argument
245 IORWLockGetMachLock( IORWLock * lock) argument
260 IOSimpleLockInit( IOSimpleLock * lock) argument
270 IOSimpleLockGetMachLock( IOSimpleLock * lock) argument
[all...]
/macosx-10.9.5/Heimdal-323.92.1/lib/hx509/
H A Dlock.c60 hx509_lock_init(hx509_context context, hx509_lock *lock) argument
65 *lock = NULL;
81 *lock = l;
87 hx509_lock_add_password(hx509_lock lock, const char *password) argument
96 d = realloc(lock->password.val,
97 (lock->password.len + 1) * sizeof(lock->password.val[0]));
102 lock->password.val = d;
103 lock->password.val[lock
110 _hx509_lock_get_passwords(hx509_lock lock) argument
116 _hx509_lock_unlock_certs(hx509_lock lock) argument
122 hx509_lock_reset_passwords(hx509_lock lock) argument
133 hx509_lock_add_cert(hx509_context context, hx509_lock lock, hx509_cert cert) argument
139 hx509_lock_add_certs(hx509_context context, hx509_lock lock, hx509_certs certs) argument
145 hx509_lock_reset_certs(hx509_context context, hx509_lock lock) argument
162 _hx509_lock_find_cert(hx509_lock lock, const hx509_query *q, hx509_cert *c) argument
169 hx509_lock_set_prompter(hx509_lock lock, hx509_prompter_fct prompt, void *data) argument
177 hx509_lock_reset_promper(hx509_lock lock) argument
207 hx509_lock_prompt(hx509_lock lock, hx509_prompt *prompt) argument
215 hx509_lock_free(hx509_lock lock) argument
240 hx509_lock_command_string(hx509_lock lock, const char *string) argument
[all...]
/macosx-10.9.5/xnu-2422.115.4/iokit/IOKit/
H A DIOLocks.h54 Global lock group used by all IOKit locks. To simplify kext debugging and lock-heat analysis, consider using lck_* locks with a per-driver lock group, as defined in kern/locks.h.
63 * Mutex lock operations
75 @discussion Allocates a mutex in general purpose memory, and initializes it. Mutexes are general purpose blocking mutual exclusion locks, supplied by libkern/locks.h. This function may block and so should not be called from interrupt level or while a spin lock is held. IOLocks use the global IOKit lock group, IOLockGroup. To simplify kext debugging and lock-heat analysis, consider using lck_* locks with a per-driver lock group, as defined in kern/locks.h.
76 @result Pointer to the allocated lock, or zero on failure. */
82 @discussion Frees a lock allocate
154 IOTakeLock( IOLock * lock) argument
155 IOTryLock( IOLock * lock) argument
156 IOUnlock( IOLock * lock) argument
293 IOReadLock( IORWLock * lock) argument
294 IOWriteLock( IORWLock * lock) argument
295 IORWUnlock( IORWLock * lock) argument
399 IOSimpleLockUnlockEnableInterrupt( IOSimpleLock * lock, IOInterruptState state ) argument
[all...]
/macosx-10.9.5/xnu-2422.115.4/osfmk/mach/
H A Dflipc_locks.h57 * Separated the lock macros out into machine dependent and independent files;
82 /* Get the simple lock type. */
86 * Lock function prototypes. This needs to be before any lock definitions
90 /* Initializes lock. Always a macro (so that kernel code can use it without
92 void flipc_simple_lock_init(flipc_simple_lock *lock);
94 /* Returns 1 if lock gained, 0 otherwise. */
95 int flipc_simple_lock_try(flipc_simple_lock *lock);
97 /* Returns 1 if lock is locked, 0 otherwise. */
98 int flipc_simple_lock_locked(flipc_simple_lock *lock);
100 /* Releases the lock
[all...]
/macosx-10.9.5/Security-55471.14.18/include/security_asn1/
H A Dprlock.h59 * NSPR represents the lock as an opaque entity to the client of the
77 ** Returns a pointer to a newly created opaque lock object.
81 ** If the lock can not be created because of resource constraints, NULL
90 ** Destroys a given opaque lock object.
91 ** INPUTS: PRLock *lock
96 NSPR_API(void) PR_DestroyLock(PRLock *lock); variable
101 ** Lock a lock.
102 ** INPUTS: PRLock *lock
107 NSPR_API(void) PR_Lock(PRLock *lock); variable
112 ** Unlock a lock
119 NSPR_API(PRStatus) PR_Unlock(PRLock *lock); variable
[all...]
/macosx-10.9.5/Security-55471.14.18/libsecurity_asn1/Security/
H A Dprlock.h59 * NSPR represents the lock as an opaque entity to the client of the
77 ** Returns a pointer to a newly created opaque lock object.
81 ** If the lock can not be created because of resource constraints, NULL
90 ** Destroys a given opaque lock object.
91 ** INPUTS: PRLock *lock
96 NSPR_API(void) PR_DestroyLock(PRLock *lock); variable
101 ** Lock a lock.
102 ** INPUTS: PRLock *lock
107 NSPR_API(void) PR_Lock(PRLock *lock); variable
112 ** Unlock a lock
119 NSPR_API(PRStatus) PR_Unlock(PRLock *lock); variable
[all...]
/macosx-10.9.5/Security-55471.14.18/libsecurity_asn1/lib/
H A Dprlock.h59 * NSPR represents the lock as an opaque entity to the client of the
77 ** Returns a pointer to a newly created opaque lock object.
81 ** If the lock can not be created because of resource constraints, NULL
90 ** Destroys a given opaque lock object.
91 ** INPUTS: PRLock *lock
96 NSPR_API(void) PR_DestroyLock(PRLock *lock); variable
101 ** Lock a lock.
102 ** INPUTS: PRLock *lock
107 NSPR_API(void) PR_Lock(PRLock *lock); variable
112 ** Unlock a lock
119 NSPR_API(PRStatus) PR_Unlock(PRLock *lock); variable
[all...]
/macosx-10.9.5/Security-55471.14.18/libsecurity_asn1/security_asn1/
H A Dprlock.h59 * NSPR represents the lock as an opaque entity to the client of the
77 ** Returns a pointer to a newly created opaque lock object.
81 ** If the lock can not be created because of resource constraints, NULL
90 ** Destroys a given opaque lock object.
91 ** INPUTS: PRLock *lock
96 NSPR_API(void) PR_DestroyLock(PRLock *lock); variable
101 ** Lock a lock.
102 ** INPUTS: PRLock *lock
107 NSPR_API(void) PR_Lock(PRLock *lock); variable
112 ** Unlock a lock
119 NSPR_API(PRStatus) PR_Unlock(PRLock *lock); variable
[all...]
/macosx-10.9.5/apache-786.1/httpd/srclib/apr-util/include/
H A Dapr_anylock.h19 * @brief APR-Util transparent any lock flavor wrapper
28 /** Structure that may contain any APR lock type */
30 /** Indicates what type of lock is in lock */
35 apr_anylock_readlock, /**< Read lock */
36 apr_anylock_writelock /**< Write lock */
43 apr_thread_rwlock_t *rw; /**< Read-write lock */
45 } lock; member in struct:apr_anylock_t
55 ? apr_thread_mutex_lock((lck)->lock.tm) \
57 ? apr_proc_mutex_lock((lck)->lock
[all...]
/macosx-10.9.5/apr-30/apr-util/apr-util/include/
H A Dapr_anylock.h19 * @brief APR-Util transparent any lock flavor wrapper
28 /** Structure that may contain any APR lock type */
30 /** Indicates what type of lock is in lock */
35 apr_anylock_readlock, /**< Read lock */
36 apr_anylock_writelock /**< Write lock */
43 apr_thread_rwlock_t *rw; /**< Read-write lock */
45 } lock; member in struct:apr_anylock_t
55 ? apr_thread_mutex_lock((lck)->lock.tm) \
57 ? apr_proc_mutex_lock((lck)->lock
[all...]
/macosx-10.9.5/xnu-2422.115.4/osfmk/kern/
H A Dlock.h57 * File: kern/lock.h
70 #include <machine/lock.h>
82 lock_t *lock,
95 lock_t *lock);
98 lock_t *lock);
101 lock_t *lock);
104 lock_t *lock);
107 lock_t *lock);
113 lock_t *lock);
119 usimple_lock_t lock,
[all...]
/macosx-10.9.5/objc4-551.1/runtime/
H A Dobjc-lockdebug.mm25 * objc-lock.m
38 void *l; // the lock itself
39 int k; // the kind of lock it is (MUTEX, MONITOR, etc)
40 int i; // the lock's nest count
104 hasLock(_objc_lock_list *locks, void *lock, int kind)
110 if (locks->list[i].l == lock && locks->list[i].k == kind) return YES;
117 setLock(_objc_lock_list *locks, void *lock, int kind)
121 if (locks->list[i].l == lock && locks->list[i].k == kind) {
127 locks->list[locks->used].l = lock;
134 clearLock(_objc_lock_list *locks, void *lock, in
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/
H A Dkern_lockf.c66 #include <sys/lock.h>
91 void lf_print(const char *tag, struct lockf *lock);
92 void lf_printlist(const char *tag, struct lockf *lock);
118 * Overlapping lock states
150 * lock operation to be attempted.
174 struct lockf *lock; local
188 LOCKF_DEBUG(0, "lf_advlock: '%s' unlock without lock\n", vfs_context_proc(context)->p_comm);
259 MALLOC(lock, struct lockf *, sizeof *lock, M_LOCKF, M_WAITOK);
260 if (lock
318 struct lockf *lock; local
371 lf_coalesce_adjacent(struct lockf *lock) argument
451 lf_setlock(struct lockf *lock, struct timespec *timeout) argument
923 lf_getlock(struct lockf *lock, struct flock *fl, pid_t matchpid) argument
967 lf_getblock(struct lockf *lock, pid_t matchpid) argument
1039 lf_findoverlap(struct lockf *lf, struct lockf *lock, int type, struct lockf ***prev, struct lockf **overlap) argument
1281 lf_print(const char *tag, struct lockf *lock) argument
1321 lf_printlist(const char *tag, struct lockf *lock) argument
1405 lf_jump_to_queue_head(struct lockf *block, struct lockf *lock) argument
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/java/src/com/sleepycat/db/
H A DLockNotGrantedException.java15 A LockNotGrantedException is thrown when a lock requested using the
17 methods, where the noWait flag or lock timers were configured, could not
21 Store database environment configured for lock timeouts was unable to
22 grant a lock in the allowed time.
24 Additionally, LockNotGrantedException is thrown when lock or transaction
29 private Lock lock; field in class:LockNotGrantedException
38 final DbLock lock,
45 this.lock = (lock == null) ? null : lock
34 LockNotGrantedException(final String message, final int op, final int mode, final DatabaseEntry obj, final DbLock lock, final int index, final DbEnv dbenv) argument
[all...]
H A DLockRequest.java13 The LockRequest object is used to encapsulate a single lock request.
16 private DbLock lock; field in class:LockRequest
24 Construct a LockRequest with the specified operation, mode and lock,
27 @param lock
28 The lock type for the object.
42 final Lock lock) {
44 this(op, mode, obj, lock, 0);
48 Construct a LockRequest with the specified operation, mode, lock and
51 @param lock
52 The lock typ
39 LockRequest(final LockOperation op, final LockRequestMode mode, final DatabaseEntry obj, final Lock lock) argument
66 LockRequest(final LockOperation op, final LockRequestMode mode, final DatabaseEntry obj, final Lock lock, final int timeout) argument
85 setLock(final Lock lock) argument
[all...]
/macosx-10.9.5/libauto-185.5/
H A DLocks.h44 spin_lock_t lock; member in struct:Auto::LockedBoolean
45 LockedBoolean() : state(false), lock(0) {}
55 SpinLock(spin_lock_t *lock) : _lock(lock) { spin_lock(_lock); } argument
62 TrySpinLock(spin_lock_t *lock) : _lock(lock) { if (_lock && !spin_lock_try(_lock)) _lock = NULL; } argument
73 void check(bool volatile *condition, spin_lock_t *lock) { argument
75 spin_lock(lock);
77 spin_unlock(lock);
79 _lock = lock;
84 ConditionBarrier(bool volatile *condition, spin_lock_t *lock) argument
98 UnconditionalBarrier(bool volatile *condition, spin_lock_t *lock) argument
128 ReadLock(pthread_rwlock_t *lock) argument
135 WriteLock(pthread_rwlock_t *lock) argument
142 TryWriteLock(pthread_rwlock_t *lock) argument
[all...]
/macosx-10.9.5/bind9-45.100/bind9/bin/tests/
H A Drwlock_test.c34 isc_rwlock_t lock; variable
40 RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_read) ==
42 printf("%s got READ lock\n", message);
44 printf("%s giving up READ lock\n", message);
45 RUNTIME_CHECK(isc_rwlock_unlock(&lock, isc_rwlocktype_read) ==
47 RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_read) ==
49 printf("%s got READ lock\n", message);
51 printf("%s giving up READ lock\n", message);
52 RUNTIME_CHECK(isc_rwlock_unlock(&lock, isc_rwlocktype_read) ==
54 RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_writ
[all...]
/macosx-10.9.5/ksh-20/ksh/src/lib/libcoshell/
H A Dcosync.c84 struct flock lock; local
96 lock.l_type = F_RDLCK;
97 lock.l_whence = 0;
98 lock.l_start = 0;
99 lock.l_len = 1;
100 if (!fcntl(fd, F_SETLK, &lock))
102 lock.l_type = F_UNLCK;
103 fcntl(fd, F_SETLK, &lock);
/macosx-10.9.5/ruby-104/ruby/missing/
H A Dflock.c30 struct flock lock; local
34 lock.l_type = F_RDLCK;
37 lock.l_type = F_WRLCK;
40 lock.l_type = F_UNLCK;
46 lock.l_whence = SEEK_SET;
47 lock.l_start = lock.l_len = 0L;
49 return fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &lock);
70 # define F_TLOCK 2 /* Test and lock a region for exclusive use */
97 /* LOCK_SH - get a shared lock */
[all...]
/macosx-10.9.5/bind9-45.100/bind9/lib/isc/
H A Dquota.c34 return (isc_mutex_init(&quota->lock));
43 DESTROYLOCK(&quota->lock);
48 LOCK(&quota->lock);
50 UNLOCK(&quota->lock);
55 LOCK(&quota->lock);
57 UNLOCK(&quota->lock);
63 LOCK(&quota->lock);
72 UNLOCK(&quota->lock);
78 LOCK(&quota->lock);
81 UNLOCK(&quota->lock);
[all...]
/macosx-10.9.5/ntp-88/lib/isc/
H A Dquota.c34 return (isc_mutex_init(&quota->lock));
43 DESTROYLOCK(&quota->lock);
48 LOCK(&quota->lock);
50 UNLOCK(&quota->lock);
55 LOCK(&quota->lock);
57 UNLOCK(&quota->lock);
63 LOCK(&quota->lock);
72 UNLOCK(&quota->lock);
78 LOCK(&quota->lock);
81 UNLOCK(&quota->lock);
[all...]
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/back-bdb/
H A Ddn2entry.c37 DB_LOCK *lock )
56 &ei, ID_LOCKED, lock );
60 memset( lock, 0, sizeof( *lock ));
61 lock->mode = DB_LOCK_NG;
68 lock );
76 lock );
/macosx-10.9.5/Libnotify-121.20.1/
H A Dlibnotify.c71 ns->lock = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t));
72 if (ns->lock == NULL)
78 pthread_mutex_init(ns->lock, NULL);
89 free(ns->lock);
113 if (ns->lock != NULL)
115 pthread_mutex_destroy(ns->lock);
116 free(ns->lock);
350 if (ns->lock != NULL) pthread_mutex_lock(ns->lock);
352 if (ns->lock !
[all...]
/macosx-10.9.5/CPANInternal-140/Net-Daemon/
H A Dregexp-threads29 my $lck = lock $numChilds;
35 my $lck = lock $regExpLock if $regExpLock;
45 my $lck = lock $numChilds;
54 my $lck = lock $numChilds;

Completed in 190 milliseconds

1234567891011>>