HomeSort by relevance Sort by last modified time
    Searched defs:lock (Results 251 - 275 of 1778) sorted by null

<<11121314151617181920>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
KeyPairGeneratorSpi.java 28 private static Object lock = new Object(); field in class:KeyPairGeneratorSpi
89 synchronized (lock)
  /external/compiler-rt/lib/builtins/
atomic.c 20 * To avoid needing a per-object lock, this code allocates an array of
22 * For operations that must be atomic on two locations, the lower lock is
49 // Platform-specific lock implementation. Falls back to spinlocks if none is
50 // defined. Each platform should define the Lock type, and corresponding
51 // lock() and unlock() functions.
58 typedef struct _usem Lock;
59 __inline static void unlock(Lock *l) {
65 __inline static void lock(Lock *l) { function
74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} }
84 __inline static void lock(Lock *l) { function
97 __inline static void lock(Lock *l) { function
    [all...]
  /external/curl/docs/examples/
smooth-gtk-thread.c 46 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
76 pthread_mutex_lock(&lock);
99 pthread_mutex_unlock(&lock);
  /external/curl/lib/
nwlib.c 52 NXMutex_t *lock; member in struct:__anon17362
82 NX_LOCK_INFO_ALLOC(liblock, "Per-Application Data Lock", 0);
124 OutputToScreen(errorScreen, "Unable to allocate library data lock.\n");
164 NX_LOCK_INFO_ALLOC(liblock, "Application Data Lock", 0);
180 * application is calling us simultaneously, we better lock our application
182 * the lock because WE might be that other thread that was too late to
195 app_data->lock = NXMutexAlloc(0, 0, &liblock);
197 if(!app_data->tenbytes || !app_data->lock) {
198 if(app_data->lock)
199 NXMutexFree(app_data->lock);
    [all...]
  /external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
ClassTransformer.java 80 * transformation process via this lock.
84 private final static Object lock = new Object(); field in class:ClassTransformer
132 synchronized (lock) {
  /external/fio/
cgroup.c 14 static struct fio_mutex *lock; variable in typeref:struct:fio_mutex
55 if (!lock)
73 fio_mutex_down(lock);
75 fio_mutex_up(lock);
83 if (!lock)
86 fio_mutex_down(lock);
97 fio_mutex_up(lock);
201 lock = fio_mutex_init(FIO_MUTEX_UNLOCKED);
202 if (!lock)
203 log_err("fio: failed to allocate cgroup lock\n")
    [all...]
filelock.c 20 struct fio_mutex lock; member in struct:fio_filelock
29 struct fio_mutex lock; member in struct:filelock_data
61 fio_mutex_up(&fld->lock);
63 fio_mutex_down(&fld->lock);
81 if (__fio_mutex_init(&fld->lock, FIO_MUTEX_UNLOCKED))
87 if (__fio_mutex_init(&ff->lock, FIO_MUTEX_UNLOCKED))
104 __fio_mutex_remove(&fld->lock);
112 __fio_mutex_remove(&ff->lock);
146 * If we dropped the main lock, re-lookup the hash in case
175 fio_mutex_down(&fld->lock);
    [all...]
helper_thread.c 12 pthread_mutex_t lock; member in struct:helper_data
20 pthread_mutex_destroy(&helper_data->lock);
29 pthread_mutex_lock(&helper_data->lock);
36 pthread_mutex_unlock(&helper_data->lock);
44 pthread_mutex_lock(&helper_data->lock);
47 pthread_mutex_unlock(&helper_data->lock);
62 pthread_mutex_lock(&helper_data->lock);
65 pthread_mutex_unlock(&helper_data->lock);
95 pthread_mutex_lock(&hd->lock);
96 pthread_cond_timedwait(&hd->cond, &hd->lock, &ts)
    [all...]
mutex.c 118 ret = mutex_cond_init_pshared(&mutex->lock, &mutex->cond);
171 pthread_mutex_lock(&mutex->lock);
179 ret = pthread_cond_timedwait(&mutex->cond, &mutex->lock, &t);
187 pthread_mutex_unlock(&mutex->lock);
191 pthread_mutex_unlock(&mutex->lock);
201 pthread_mutex_lock(&mutex->lock);
206 pthread_mutex_unlock(&mutex->lock);
215 pthread_mutex_lock(&mutex->lock);
219 pthread_cond_wait(&mutex->cond, &mutex->lock);
224 pthread_mutex_unlock(&mutex->lock);
270 struct fio_rwlock *lock; local
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
MoreExecutors.java 53 import java.util.concurrent.locks.Lock;
277 * Lock used whenever accessing the state variables
280 private final Lock lock = new ReentrantLock(); field in class:MoreExecutors.DirectExecutorService
283 private final Condition termination = lock.newCondition();
307 lock.lock();
311 lock.unlock();
317 lock.lock();
    [all...]
  /external/guice/core/src/com/google/inject/internal/
State.java 129 public Object lock() {
200 * Returns the shared lock for all injector data. This is a low-granularity, high-contention lock
203 Object lock(); method in interface:State
  /external/kernel-headers/original/uapi/drm/
drm_sarea.h 76 struct drm_hw_lock lock; member in struct:drm_sarea
77 /** \todo Use readers/writer lock for drm_sarea::drawable_lock */
  /external/libcap-ng/libcap-ng-0.7/utils/
captest.c 52 static int text = 0, no_child = 0, lock = 0; variable
199 printf("usage: captest [ --drop-all | --drop-caps | --id ] [ --lock ] [ --text ]\n");
211 else if (strcmp(argv[i], "--lock") == 0)
212 lock = 1;
228 if (lock)
235 if (lock)
259 if (lock)
  /external/libchrome/base/task_scheduler/
scheduler_lock_unittest.cc 22 // Adapted from base::Lock's BasicLockTestThread to make sure
26 explicit BasicLockTestThread(SchedulerLock* lock)
28 lock_(lock),
56 explicit BasicLockAcquireAndWaitThread(SchedulerLock* lock)
58 lock_(lock),
89 SchedulerLock lock; local
90 BasicLockTestThread thread(&lock);
96 lock.Acquire();
98 lock.Release();
101 lock.Acquire()
258 SchedulerLock lock; member in struct:base::internal::__anon24345::SelfReferentialLock
    [all...]
  /external/libcxx/src/
mutex.cpp 30 mutex::lock() function in class:mutex
34 __throw_system_error(ec, "mutex lock failed");
68 recursive_mutex::lock() function in class:recursive_mutex
72 __throw_system_error(ec, "recursive_mutex lock failed");
102 timed_mutex::lock() function in class:timed_mutex
144 recursive_timed_mutex::lock() function in class:recursive_timed_mutex
151 __throw_system_error(EAGAIN, "recursive_timed_mutex lock limit reached");
  /external/libdrm/include/drm/
drm_sarea.h 72 struct drm_hw_lock lock; member in struct:drm_sarea
73 /** \todo Use readers/writer lock for drm_sarea::drawable_lock */
  /external/libevent/
evthread_pthread.c 48 pthread_mutex_t *lock = mm_malloc(sizeof(pthread_mutex_t)); local
49 if (!lock)
53 if (pthread_mutex_init(lock, attr)) {
54 mm_free(lock);
57 return lock;
63 pthread_mutex_t *lock = lock_; local
64 pthread_mutex_destroy(lock);
65 mm_free(lock);
71 pthread_mutex_t *lock = lock_; local
73 return pthread_mutex_trylock(lock);
81 pthread_mutex_t *lock = lock_; local
141 pthread_mutex_t *lock = lock_; local
    [all...]
iocp-internal.h 78 /* A lock to cover internal structures. */
79 CRITICAL_SECTION lock; member in struct:event_iocp_port
  /external/libevent/include/event2/
thread.h 35 lock its data structures.
58 @name Flags passed to lock functions
62 /** A flag passed to a locking callback when the lock was allocated as a
63 * read-write lock, and we want to acquire or release the lock for writing. */
65 /** A flag passed to a locking callback when the lock was allocated as a
66 * read-write lock, and we want to acquire or release the lock for reading. */
69 * for the lock; if we can't get the lock immediately, we will instea
115 int (*lock)(unsigned mode, void *lock); member in struct:evthread_lock_callbacks
    [all...]
  /external/libmojo/mojo/edk/system/ports/
port.h 15 #include "base/synchronization/lock.h"
33 base::Lock lock; member in class:mojo::edk::ports::Port
  /external/libxcam/xcore/
xcam_mutex.h 2 * xcam_mutex.h - Lock
49 void lock() { function in class:XCam::Mutex
52 XCAM_LOG_WARNING ("Mutex lock failed %d: %s", error_num, strerror(error_num));
110 _mutex.lock();
  /external/linux-kselftest/tools/testing/selftests/sync/
sync_stress_consumer.c 60 pthread_mutex_t lock; member in struct:__anon26889
93 pthread_mutex_lock(&test_data_mpsc.lock);
95 pthread_mutex_unlock(&test_data_mpsc.lock);
171 pthread_mutex_init(&test_data_mpsc.lock, NULL);
  /external/llvm/include/llvm/Support/
RWMutex.h 1 //===- RWMutex.h - Reader/Writer Mutual Exclusion Lock ----------*- C++ -*-===//
32 /// Initializes the lock but doesn't acquire it.
36 /// Releases and removes the lock
45 /// Attempts to unconditionally acquire the lock in reader mode. If the
46 /// lock is held by a writer, this method will wait until it can acquire
47 /// the lock.
49 /// @brief Unconditionally acquire the lock in reader mode.
52 /// Attempts to release the lock in reader mode.
54 /// @brief Unconditionally release the lock in reader mode.
57 /// Attempts to unconditionally acquire the lock in reader mode. If th
117 bool lock() { function in class:llvm::sys::SmartRWMutex
    [all...]
  /external/llvm/utils/emacs/
tablegen-mode.el 19 (defvar tablegen-font-lock-keywords
28 ;; '("\/\/" . font-lock-comment-face)
30 '("\"[^\"]+\"" . font-lock-string-face)
32 '("\\<0x[0-9A-Fa-f]+\\>" . font-lock-preprocessor-face)
34 '("\\<0b[01]+\\>" . font-lock-preprocessor-face)
36 '("\\<[-]?[0-9]+\\>" . font-lock-preprocessor-face)
38 '("\\<[-+]?[0-9]+\.[0-9]*\([eE][-+]?[0-9]+\)?\\>" . font-lock-preprocessor-face)
48 (put 'tablegen-mode 'font-lock-defaults '(tablegen-font-lock-keywords))
109 (make-local-variable 'font-lock-defaults
    [all...]
  /external/ltp/testcases/open_posix_testsuite/functional/semaphores/
sem_conpro.c 33 sem_t lock; member in struct:__anon28614
48 if (-1 == sem_wait(&buf->lock)) {
56 if (-1 == sem_post(&buf->lock)) {
78 if (-1 == sem_wait(&buf->lock)) {
85 if (-1 == sem_post(&buf->lock)) {
118 if (-1 == sem_init(&buf.lock, shared, lock_value)) {

Completed in 1161 milliseconds

<<11121314151617181920>>