Searched refs:lock (Results 101 - 125 of 393) sorted by relevance

1234567891011>>

/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/
H A DPOAImpl.java224 // Master lock for all POA synchronization. See lock and unlock.
285 void lock() method in class:POAImpl
372 // The POA lock must be held when this method is called.
459 lock() ;
581 poa.lock() ;
613 // Make a copy since we can't hold the lock while destroying
647 // Note that we must lock the parent before the child.
648 // The parent lock is required (if poa is not the root)
651 parent.lock() ;
[all...]
/openjdk7/jdk/src/share/classes/java/lang/ref/
H A DFinalizer.java43 private static final Object lock = new Object(); field in class:Finalizer
54 synchronized (lock) {
64 synchronized (lock) {
169 synchronized (lock) {
/openjdk7/hotspot/src/share/vm/memory/
H A DgcLocker.inline.hpp30 inline void GC_locker::lock() { function in class:GC_locker
49 // jni_lock call calls enter_critical under the lock so that the
50 // global lock count and per thread count are in agreement.
62 // jni_unlock call calls exit_critical under the lock so that
63 // the global lock count and per thread count are in agreement.
H A DfreeBlockDictionary.hpp57 virtual size_t total_chunk_size(debug_only(const Mutex* lock)) const = 0;
98 void set_par_lock(Mutex* lock) PRODUCT_RETURN;
/openjdk7/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/
H A DEchoService.java109 private static Object lock = new Object(); field in class:EchoService.Worker
112 synchronized (lock) {
121 synchronized (lock) {
131 synchronized (lock) {
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DFileDispatcher.java32 public static final int NO_LOCK = -1; // Failed to lock
33 public static final int LOCKED = 0; // Obtained requested lock
34 public static final int RET_EX_LOCK = 1; // Obtained exclusive lock
43 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, method in class:FileDispatcher
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DPort.java69 fdToChannelLock.writeLock().lock();
85 fdToChannelLock.writeLock().lock();
112 fdToChannelLock.writeLock().lock();
148 fdToChannelLock.writeLock().lock();
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/
H A DHelloWorld.java33 private static Object lock = new Object(); field in class:HelloWorld
55 synchronized(lock) {
/openjdk7/jdk/src/share/classes/java/io/
H A DBufferedReader.java171 synchronized (lock) {
270 synchronized (lock) {
309 synchronized (lock) {
399 synchronized (lock) {
436 synchronized (lock) {
487 synchronized (lock) {
502 synchronized (lock) {
514 synchronized (lock) {
H A DStringWriter.java51 lock = buf;
70 lock = buf;
/openjdk7/hotspot/src/share/vm/prims/
H A DjvmtiTagMap.hpp50 Mutex _lock; // lock for this tag map
60 inline Mutex* lock() { return &_lock; } function in class:JvmtiTagMap
71 bool is_locked() { return lock()->is_locked(); }
/openjdk7/hotspot/src/share/vm/shark/
H A DsharkRuntime.hpp42 static void monitorenter(JavaThread* thread, BasicObjectLock* lock);
43 static void monitorexit(JavaThread* thread, BasicObjectLock* lock);
/openjdk7/jdk/src/solaris/native/java/net/
H A Dbsd_close.c54 pthread_mutex_t lock; /* fd lock */ member in struct:__anon957
110 pthread_mutex_init(&fdTable[i].lock, NULL);
147 pthread_mutex_lock(&(fdEntry->lock));
152 pthread_mutex_unlock(&(fdEntry->lock));
164 pthread_mutex_lock(&(fdEntry->lock));
184 pthread_mutex_unlock(&(fdEntry->lock));
208 pthread_mutex_lock(&(fdEntry->lock));
240 pthread_mutex_unlock(&(fdEntry->lock));
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DReleaseOnCloseDeadlock.java56 locks[i] = fc.lock(i, 1, true);
63 locks[i] = ch.lock(i, 1, true).get();
/openjdk7/jdk/src/share/classes/sun/net/ftp/
H A DFtpClientProvider.java48 private static final Object lock = new Object(); field in class:FtpClientProvider
138 synchronized (lock) {
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DReentrantLock.java43 * behavior and semantics as the implicit monitor lock accessed using
49 * {@code lock} will return, successfully acquiring the lock, when
50 * the lock is not owned by another thread. The method will return
51 * immediately if the current thread already owns the lock. This can
58 * thread. Otherwise this lock does not guarantee any particular
65 * fair lock may obtain it multiple times in succession while other
67 * lock.
69 * honor the fairness setting. It will succeed if the lock
73 * follow a call to {@code lock} wit
126 abstract void lock(); method in class:ReentrantLock.Sync
210 final void lock() { method in class:ReentrantLock.NonfairSync
228 final void lock() { method in class:ReentrantLock.FairSync
289 public void lock() { method in class:ReentrantLock
[all...]
/openjdk7/jdk/test/com/sun/net/httpserver/bugs/
H A DB6373555.java46 private static Object lock; field in class:B6373555
53 lock = new Object();
120 synchronized(lock) {
159 synchronized(lock) {
175 synchronized(lock) {
/openjdk7/jdk/test/java/rmi/activation/rmidViaInheritedChannel/
H A DInheritedChannelNotServerSocket.java56 private static final Object lock = new Object(); field in class:InheritedChannelNotServerSocket
68 synchronized (lock) {
71 lock.notifyAll();
114 synchronized (lock) {
116 lock.wait();
H A DRmidViaInheritedChannel.java50 private static final Object lock = new Object(); field in class:RmidViaInheritedChannel
56 synchronized (lock) {
59 lock.notifyAll();
100 synchronized (lock) {
102 lock.wait();
/openjdk7/jdk/test/javax/management/remote/mandatory/notif/
H A DRMINotifTest.java125 synchronized (lock) {
127 lock.wait(10000);
172 synchronized(lock) {
173 lock.notifyAll();
235 private static int[] lock = new int[0]; field in class:RMINotifTest
/openjdk7/jdk/test/sun/awt/image/ImageRepresentation/
H A DLUTCompareTest.java70 synchronized(lock) {
72 lock.wait(200);
81 private static Object lock = new Object(); field in class:LUTCompareTest
98 synchronized(lock) {
99 lock.notifyAll();
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DLock.java27 * @summary Unit test for AsynchronousFileChannel#lock method
78 // slave VM opens file and acquires exclusive lock
79 slave.open(file.getPath()).lock();
84 // this VM tries to acquire lock
85 // (lock should not be acquire until released by slave VM)
86 Future<FileLock> result = ch.lock();
93 // slave VM releases lock
96 // this VM should now acquire lock
100 // slave VM acquires lock on range
101 slave.lock(
218 LockSlaveMirror lock() throws IOException { method in class:Lock.LockSlaveMirror
224 LockSlaveMirror lock(long position, long size, boolean shared) method in class:Lock.LockSlaveMirror
[all...]
/openjdk7/jdk/src/solaris/classes/java/lang/
H A DUNIXProcess.java.solaris208 private Object lock = new Object(); // For the following fields
214 synchronized (lock) {
220 synchronized (lock) {
232 synchronized (lock) {
243 synchronized (lock) {
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DThreadPoolExecutor.java284 * pauseLock.lock();
295 * pauseLock.lock();
304 * pauseLock.lock();
447 * to be generally preferable to use a lock. Among the reasons is
574 * to simplify acquiring and releasing a lock surrounding each
578 * non-reentrant mutual exclusion lock rather than use
580 * reacquire the lock when they invoke pool control methods like
582 * the thread actually starts running tasks, we initialize lock
641 public void lock() { acquire(1); } method in class:ThreadPoolExecutor.Worker
700 mainLock.lock();
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DTimerQueue.java95 runningLock.lock();
118 timer.getLock().lock();
135 timer.getLock().lock();
145 timer.getLock().lock();
157 timer.getLock().lock();
167 runningLock.lock();
172 timer.getLock().lock();
178 * the queue and before the lock on the timer is

Completed in 74 milliseconds

1234567891011>>