Searched refs:lock (Results 276 - 300 of 1133) sorted by relevance

<<11121314151617181920>>

/macosx-10.9.5/Security-55471.14.18/include/security_utilities/
H A Dthreading.h139 void lock(); // lock and wait
140 bool tryLock(); // instantaneous lock (return false if busy)
185 void enter(); // lock, add one, unlock
187 void exit(); // lock, subtract one, unlock
189 // these methods do not lock - use only while you hold the lock
193 // convert Mutex lock to CountingMutex enter/exit. Expert use only
194 void finishEnter(); // all but the initial lock
195 void finishExit(); // all but the initial lock
220 void lock() { if(!mActive) { (me.*_lock)(); mActive = true; }} function in class:Security::StLock
247 void lock() { if(!mActive) { (released.*_runlock)(); (taken.*_lock)(); mActive = true; }} function in class:Security::StSyncLock
[all...]
/macosx-10.9.5/Security-55471.14.18/libsecurity_utilities/lib/
H A Dthreading.h139 void lock(); // lock and wait
140 bool tryLock(); // instantaneous lock (return false if busy)
185 void enter(); // lock, add one, unlock
187 void exit(); // lock, subtract one, unlock
189 // these methods do not lock - use only while you hold the lock
193 // convert Mutex lock to CountingMutex enter/exit. Expert use only
194 void finishEnter(); // all but the initial lock
195 void finishExit(); // all but the initial lock
220 void lock() { if(!mActive) { (me.*_lock)(); mActive = true; }} function in class:Security::StLock
247 void lock() { if(!mActive) { (released.*_runlock)(); (taken.*_lock)(); mActive = true; }} function in class:Security::StSyncLock
[all...]
/macosx-10.9.5/bind9-45.100/bind9/lib/isc/win32/
H A Dsocket.c228 isc_mutex_t lock; member in struct:isc_socket
234 /* Locked by socket lock. */
321 isc_mutex_t lock; member in struct:isc_socketmgr
324 /* Locked by manager lock. */
1477 * initialize the lock
1479 result = isc_mutex_init(&sock->lock);
1580 UNLOCK(&sock->lock);
1583 UNLOCK(&sock->lock);
1601 ISC_MSG_DESTROYING, "freeing socket line %d fd %d lock %p semaphore %p",
1602 lineno, sock->fd, &sock->lock, soc
[all...]
/macosx-10.9.5/libauto-185.5/auto_tester/
H A DEnliveningRace.m68 - (void)lock {
154 [condition lock];
163 [condition lock];
215 [condition lock];
/macosx-10.9.5/ruby-104/ruby/lib/
H A Dpstore.rb130 @lock = Mutex.new
135 raise PStore::Error, "not in transaction" unless @lock.locked?
313 raise PStore::Error, "nested transaction" unless @lock.try_lock
316 @lock.lock
347 @lock.unlock
360 # read-write mode) and lock it for reading or writing.
/macosx-10.9.5/Heimdal-323.92.1/lib/hx509/
H A Dhxtool.c65 lock_strings(hx509_lock lock, getarg_strings *pass) argument
69 int ret = hx509_lock_command_string(lock, pass->strings[i]);
82 hx509_lock lock, const getarg_strings *s)
87 ret = hx509_certs_append(context, certs, lock, s->strings[i]);
200 hx509_lock lock; local
209 hx509_lock_init(hxcontext, &lock);
210 lock_strings(lock, &opt->pass_strings);
223 certs_strings(hxcontext, "anchors", anchors, lock, &opt->anchors_strings);
224 certs_strings(hxcontext, "store", store, lock, &opt->certificate_strings);
330 hx509_lock_free(lock);
81 certs_strings(hx509_context context, const char *type, hx509_certs certs, hx509_lock lock, const getarg_strings *s) argument
376 hx509_lock lock; local
531 hx509_lock lock; local
601 hx509_lock lock; local
724 hx509_lock lock; local
768 hx509_lock lock; local
1005 hx509_lock lock; local
1082 hx509_lock lock; local
1180 hx509_lock lock; local
2076 hx509_lock lock; local
2116 hx509_lock lock; local
[all...]
H A Dks_file.c179 hx509_lock lock; local
183 lock = _hx509_collector_get_lock(c);
184 if (lock == NULL) {
257 pw = _hx509_lock_get_passwords(lock);
285 ret = hx509_lock_prompt(lock, &prompt);
289 /* XXX add password to lock password collection ? */
369 const char *residue, hx509_lock lock, outformat format)
382 if (lock == NULL)
383 lock = _hx509_empty_lock;
406 0, lock,
367 file_init_common(hx509_context context, hx509_certs certs, void **data, int flags, const char *residue, hx509_lock lock, outformat format) argument
494 file_init_pem(hx509_context context, hx509_certs certs, void **data, int flags, const char *residue, hx509_lock lock) argument
502 file_init_der(hx509_context context, hx509_certs certs, void **data, int flags, const char *residue, hx509_lock lock) argument
561 file_store(hx509_context context, hx509_certs certs, void *data, int flags, hx509_lock lock) argument
[all...]
H A Dcollector.c43 hx509_lock lock; member in struct:hx509_collector
54 _hx509_collector_alloc(hx509_context context, hx509_lock lock, struct hx509_collector **collector) argument
66 c->lock = lock;
91 return c->lock;
/macosx-10.9.5/llvmCore-3425.0.33/lib/ExecutionEngine/JIT/
H A DJIT.cpp286 MutexGuard locked(lock);
334 MutexGuard locked(lock);
362 MutexGuard locked(lock);
562 MutexGuard locked(lock);
568 MutexGuard locked(lock);
580 MutexGuard locked(lock);
587 MutexGuard locked(lock);
598 MutexGuard locked(lock);
660 MutexGuard locked(lock);
662 // Now that this thread owns the lock, mak
[all...]
/macosx-10.9.5/ntp-88/lib/isc/win32/
H A Dsocket.c228 isc_mutex_t lock; member in struct:isc_socket
234 /* Locked by socket lock. */
321 isc_mutex_t lock; member in struct:isc_socketmgr
324 /* Locked by manager lock. */
1447 * initialize the lock
1449 result = isc_mutex_init(&sock->lock);
1550 UNLOCK(&sock->lock);
1553 UNLOCK(&sock->lock);
1571 ISC_MSG_DESTROYING, "freeing socket line %d fd %d lock %p semaphore %p",
1572 lineno, sock->fd, &sock->lock, soc
[all...]
/macosx-10.9.5/WebCore-7537.78.1/bindings/js/
H A DScriptController.cpp86 JSLockHolder lock(JSDOMWindowBase::commonVM());
134 JSLockHolder lock(exec);
176 JSLockHolder lock(JSDOMWindowBase::commonVM());
211 JSLockHolder lock(world->vm());
290 JSLockHolder lock(iter->key->vm());
301 JSLockHolder lock(JSDOMWindowBase::commonVM());
313 JSLockHolder lock(JSDOMWindowBase::commonVM());
357 JSC::JSLockHolder lock(win->globalExec());
400 JSLockHolder lock(globalObj->globalExec());
434 JSLockHolder lock(JSDOMWindowBas
[all...]
H A DWorkerScriptController.cpp69 JSLockHolder lock(vm());
78 JSLockHolder lock(m_vm.get());
122 JSLockHolder lock(vm());
135 JSLockHolder lock(exec);
192 JSLockHolder lock(vm());
/macosx-10.9.5/WebCore-7537.78.1/workers/
H A DDefaultSharedWorkerRepository.cpp116 // Ensures exclusive access to the worker documents. Must not grab any other locks (such as the DefaultSharedWorkerRepository lock) while holding this one.
145 MutexLocker lock(m_workerDocumentsLock);
188 MutexLocker lock(m_workerDocumentsLock);
200 MutexLocker lock(m_workerDocumentsLock);
235 MutexLocker lock(m_workerDocumentsLock);
245 MutexLocker lock(m_workerDocumentsLock);
363 MutexLocker lock(m_lock);
378 MutexLocker lock(m_lock);
388 MutexLocker lock(m_lock);
399 MutexLocker lock(m_loc
[all...]
/macosx-10.9.5/bind9-45.100/bind9/lib/dns/
H A Ddispatch.c66 isc_mutex_t *lock; member in struct:arc4ctx
73 isc_mutex_t lock; member in struct:dns_qid
87 /* Locked by "lock". */
88 isc_mutex_t lock; member in struct:dns_dispatchmgr
96 /* locked by buffer lock */
112 * Locked by qid->lock if qid exists; otherwise, can be used without
229 /*% Locked by mgr->lock. */
232 /* Locked by "lock". */
233 isc_mutex_t lock; /*%< locks all below */ member in struct:dns_dispatch
283 #define PORTBUFLOCK(mgr) if ((mgr)->qid != NULL) LOCK(&((mgr)->qid->lock))
442 dispatch_initrandom(arc4ctx_t *actx, isc_entropy_t *entropy, isc_mutex_t *lock) argument
558 dispatch_initrandom(arc4ctx_t *actx, isc_entropy_t *entropy, isc_mutex_t *lock) argument
[all...]
H A Decdb.c51 isc_mutex_t lock; member in struct:dns_ecdb
61 isc_mutex_t lock; member in struct:dns_ecdbnode
162 LOCK(&ecdb->lock);
164 UNLOCK(&ecdb->lock);
177 DESTROYLOCK(&ecdb->lock);
196 LOCK(&ecdb->lock);
200 UNLOCK(&ecdb->lock);
217 LOCK(&node->lock);
221 UNLOCK(&node->lock);
235 LOCK(&ecdb->lock);
[all...]
H A Dacache.c101 /* Locked by acache lock */
129 isc_mutex_t lock; member in struct:acache_cleaner
149 Locked by acache lock. */
189 isc_mutex_t lock; member in struct:dns_acache
373 LOCK(&acache->lock);
378 UNLOCK(&acache->lock);
453 DESTROYLOCK(&acache->cleaner.lock);
455 DESTROYLOCK(&acache->lock);
471 * The caller must be holding the acache lock.
498 * The caller must be holing the entry lock
[all...]
/macosx-10.9.5/NFS-81/rpc.statd/
H A Dstatd.c433 struct flock lock; local
451 /* check for lock on file by PID */
452 lock.l_type = F_RDLCK;
453 lock.l_whence = SEEK_SET;
454 lock.l_start = 0;
455 lock.l_len = 0;
456 rv = fcntl(fd, F_GETLK, &lock);
461 } else if (lock.l_type == F_UNLCK) {
477 struct flock lock; local
495 /* check for lock o
[all...]
/macosx-10.9.5/Libc-997.90.3/darwin/
H A D_dirhelper.c262 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; local
279 MUTEX_LOCK(&lock);
283 MUTEX_UNLOCK(&lock);
304 MUTEX_UNLOCK(&lock);
313 MUTEX_UNLOCK(&lock);
329 MUTEX_UNLOCK(&lock);
346 MUTEX_UNLOCK(&lock);
/macosx-10.9.5/ntfs-83/kext/
H A Dntfs_inode.c139 lck_rw_init(&ni->lock, ntfs_lock_grp, ntfs_lock_attr);
360 need for size lock as we are only
414 * @lock: locking options (see below)
423 * If @lock is LCK_RW_TYPE_SHARED the inode will be returned locked for reading
424 * (@nni->lock) and if it is LCK_RW_TYPE_EXCLUSIVE the inode will be returned
425 * locked for writing (@nni->lock). As a special case if @lock is 0 it means
426 * the inode to be returned is already locked so do not lock it. This requires
460 const lck_rw_type_t lock, ntfs_inode **nni, vnode_t parent_vn,
468 ntfs_debug("Entering for mft_no 0x%llx, is_system is %s, lock
459 ntfs_inode_get(ntfs_volume *vol, ino64_t mft_no, const BOOL is_system, const lck_rw_type_t lock, ntfs_inode **nni, vnode_t parent_vn, struct componentname *cn) argument
797 ntfs_attr_inode_get_or_create(ntfs_inode *base_ni, ATTR_TYPE type, ntfschar *name, u32 name_len, const BOOL is_system, const BOOL raw, const int options, const lck_rw_type_t lock, ntfs_inode **nni) argument
[all...]
/macosx-10.9.5/bind9-45.100/bind9/lib/isc/unix/
H A Dsocket.c196 * Size of per-FD lock buckets.
304 isc_mutex_t lock; member in struct:isc__socket
308 /* Locked by socket lock. */
361 isc_mutex_t lock; member in struct:isc__socketmgr
394 /* Locked by manager lock. */
850 LOCK(&manager->lock);
855 UNLOCK(&manager->lock);
937 LOCK(&manager->lock);
942 UNLOCK(&manager->lock);
962 /* No one should be updating fdstate, so no need to lock i
[all...]
/macosx-10.9.5/WebKit2-7537.78.2/WebProcess/Plugins/Netscape/
H A DNPJSObject.cpp105 JSLockHolder lock(exec);
125 JSLockHolder lock(exec);
137 JSLockHolder lock(exec);
151 JSLockHolder lock(exec);
171 JSLockHolder lock(exec);
191 JSLockHolder lock(exec);
212 JSLockHolder lock(exec);
241 JSLockHolder lock(exec);
263 JSLockHolder lock(exec);
/macosx-10.9.5/diskdev_cmds-572.1.1/umount.tproj/
H A Dumount.c108 pthread_mutex_t *lock; local
119 lock = args->wakeup_lock;
120 (void)pthread_mutex_lock(lock);
123 (void)pthread_mutex_unlock(lock);
309 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; local
319 args.wakeup_lock = &lock;
325 if (rv == 0 && pthread_mutex_lock(&lock) == 0) {
327 rv = pthread_cond_timedwait(&cond, &lock, &timeout);
330 (void)pthread_mutex_unlock(&lock);
/macosx-10.9.5/BerkeleyDB-21/db/examples_c/
H A Dex_lock.c38 DB_LOCK lock; local
82 * Accept lock requests.
98 /* Acquire a lock. */
99 printf("input object (text string) to lock> ");
107 printf("lock type read/write [read]> ");
124 DB_LOCK_NOWAIT, &lock_dbt, lock_type, &lock);
134 locks[lockid] = lock;
137 /* Release a lock. */
139 printf("input lock to release> ");
150 lock
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/examples_java/src/db/
H A DLockExample.java93 // Accept lock requests.
104 // Acquire a lock.
106 "input object (text string) to lock> ");
113 "lock type read/write [read]> ");
129 Lock lock;
131 lock = dbenv.getLock(locker, true, entry, lock_type);
133 locks.addElement(lock);
135 // Release a lock.
138 "input lock to release> ");
148 Lock lock
[all...]
/macosx-10.9.5/bind9-45.100/bind9/bin/named/
H A Dinterfacemgr.c46 isc_mutex_t lock; member in struct:ns_interfacemgr
82 result = isc_mutex_init(&mgr->lock);
129 DESTROYLOCK(&mgr->lock);
142 LOCK(&source->lock);
145 UNLOCK(&source->lock);
155 LOCK(&target->lock);
160 UNLOCK(&target->lock);
199 result = isc_mutex_init(&ifp->lock);
237 DESTROYLOCK(&ifp->lock);
411 DESTROYLOCK(&ifp->lock);
[all...]

Completed in 400 milliseconds

<<11121314151617181920>>