Searched defs:lock (Results 101 - 125 of 210) sorted by relevance

123456789

/openjdk7/jdk/src/share/classes/javax/crypto/
H A DKeyGenerator.java128 private final Object lock = new Object(); field in class:KeyGenerator
299 synchronized (lock) {
313 synchronized (lock) {
H A DMac.java100 private final Object lock; field in class:Mac
114 lock = null;
121 lock = new Object();
268 synchronized (lock) {
322 synchronized (lock) {
/openjdk7/hotspot/src/share/vm/code/
H A Dstubs.cpp66 Mutex* lock, const char* name) : _mutex(lock) {
112 if (_mutex != NULL) _mutex->lock();
224 MutexLockerEx lock(_mutex);
232 MutexLockerEx lock(_mutex);
259 MutexLockerEx lock(_mutex);
65 StubQueue(StubInterface* stub_interface, int buffer_size, Mutex* lock, const char* name) argument
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DAbstractDataLine.java51 // the lock for synchronization
52 protected final Object lock = new Object(); field in class:AbstractDataLine
197 synchronized(lock) {
198 lock.notifyAll();
229 synchronized(lock) {
230 lock.notifyAll();
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DVirtualMachineManagerImpl.java53 private static final Object lock = new Object(); field in class:VirtualMachineManagerImpl
63 synchronized (lock) {
/openjdk7/jdk/src/solaris/native/com/sun/management/
H A DSolarisOperatingSystem.c92 // Concurrence in this method is prevented by the lock in
179 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
187 pthread_mutex_lock(&lock);
208 pthread_mutex_unlock(&lock);
/openjdk7/jdk/test/java/lang/management/ManagementFactory/
H A DThreadMXBeanProxy.java48 static Object lock = new Object(); field in class:ThreadMXBeanProxy
63 // wait until myThread acquires mutex and lock owner is set.
111 synchronized (lock) {
112 mutex.lock();
150 String className = lock.getClass().getName();
151 int hcode = System.identityHashCode(lock);
187 // Acquire the lock if state is zero
197 // Release the lock by setting state to zero
224 public void lock() { sync.acquire(1); } method in class:ThreadMXBeanProxy.Mutex
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DLocks.java45 private static String getLockName(Object lock) { argument
46 if (lock == null) return null;
48 return lock.getClass().getName() + '@' +
49 Integer.toHexString(System.identityHashCode(lock));
52 private static void checkBlockedObject(Thread t, Object lock, Thread owner, argument
56 String expectedLock = (lock != null ? getLockName(lock) : null);
59 if (lock != null) {
89 throw new RuntimeException("Owner of " + lock + " should be " +
147 // for lock obj
287 findOwnerInfo(ThreadInfo[] infos, String lock) argument
320 doCheck(ThreadInfo[] infos, String lock, long[] expectedThreads) argument
[all...]
H A DMyOwnSynchronizer.java105 // Acquire the lock if state is zero
115 // Release the lock by setting state to zero
138 public void lock() { sync.acquire(1); } method in class:MyOwnSynchronizer.Mutex
159 mutex.lock();
H A DThreadStateTest.java29 * It also tests lock information returned by ThreadInfo.
55 private static Lock globalLock = new Lock("my lock");
150 private static String getLockName(Object lock) { argument
151 if (lock == null) return null;
153 return lock.getClass().getName() + '@' +
154 Integer.toHexString(System.identityHashCode(lock));
157 private static void checkLockInfo(Thread t, Thread.State state, Object lock, Thread owner) { argument
170 if (lock == null && info.getLockName() != null) {
172 " expected not to be blocked on any lock" +
175 String expectedLockName = getLockName(lock);
[all...]
/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/test/java/util/concurrent/locks/Lock/
H A DFlakyMutex.java74 try { m.lock(); break; }
122 public void lock() { sync.acquire(1); } method in class:FlakyMutex
/openjdk7/jdk/test/java/util/concurrent/locks/ReentrantReadWriteLock/
H A DCount.java27 * @summary Recursive lock invariant sanity checks
40 void lock(Lock lock) { argument
43 case 0: lock.lock(); break;
44 case 1: lock.lockInterruptibly(); break;
45 case 2: check(lock.tryLock()); break;
46 case 3: check(lock.tryLock(45, TimeUnit.MINUTES)); break;
78 lock(rwl.readLock());
123 lock(r
[all...]
/openjdk7/jdk/test/javax/management/remote/mandatory/connection/
H A DMultiThreadDeadLockTest.java215 private static int[] lock = new int[0]; field in class:MultiThreadDeadLockTest.StateMachine
218 synchronized (lock) {
221 lock.wait();
231 synchronized (lock) {
237 synchronized (lock) {
239 lock.notifyAll();
/openjdk7/jdk/test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/
H A DSourceClippingBlitTest.java66 private static final Object lock = new Object(); field in class:SourceClippingBlitTest
101 synchronized (lock) {
104 lock.wait();
163 synchronized (lock) {
165 lock.notifyAll();
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DAsynchronousFileChannelImpl.java83 closeLock.readLock().lock();
113 public final Future<FileLock> lock(long position, method in class:AsynchronousFileChannelImpl
122 public final <A> void lock(long position, method in class:AsynchronousFileChannelImpl
160 * Adds region to lock table
166 closeLock.readLock().lock();
190 * Releases the given file lock.
195 * Invoked by FileLockImpl to release the given file lock and remove it
196 * from the lock table.
/openjdk7/jdk/src/share/classes/sun/nio/cs/
H A DStreamDecoder.java60 Object lock,
69 return new StreamDecoder(in, lock, Charset.forName(csn));
75 Object lock,
78 return new StreamDecoder(in, lock, cs);
82 Object lock,
85 return new StreamDecoder(in, lock, dec);
116 synchronized (lock) {
146 synchronized (lock) {
182 synchronized (lock) {
189 synchronized (lock) {
59 forInputStreamReader(InputStream in, Object lock, String charsetName) argument
74 forInputStreamReader(InputStream in, Object lock, Charset cs) argument
81 forInputStreamReader(InputStream in, Object lock, CharsetDecoder dec) argument
229 StreamDecoder(InputStream in, Object lock, Charset cs) argument
236 StreamDecoder(InputStream in, Object lock, CharsetDecoder dec) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DSinkChannelImpl.java53 private final Object lock = new Object(); field in class:SinkChannelImpl
56 // DO NOT invoke a blocking I/O operation while holding this lock!
160 synchronized (lock) {
183 synchronized (lock) {
H A DSourceChannelImpl.java53 private final Object lock = new Object(); field in class:SourceChannelImpl
56 // DO NOT invoke a blocking I/O operation while holding this lock!
160 synchronized (lock) {
191 synchronized (lock) {
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/
H A DThread.java138 public boolean isLockOwned(Address lock) { argument
139 if (isInStack(lock)) return true;
/openjdk7/jdk/src/share/classes/javax/swing/
H A DTimer.java179 private transient final Lock lock = new ReentrantLock(); field in class:Timer
184 // access to this field is synchronized on getLock() lock.
573 getLock().lock();
589 getLock().lock();
621 return lock;
/openjdk7/jdk/src/share/classes/java/lang/
H A DThrowable.java653 synchronized (s.lock()) {
680 assert Thread.holdsLock(s.lock());
730 abstract Object lock(); method in class:Throwable.PrintStreamOrWriter
743 Object lock() { method in class:Throwable.WrappedPrintStream
759 Object lock() { method in class:Throwable.WrappedPrintWriter
/openjdk7/jdk/src/share/classes/java/lang/management/
H A DThreadInfo.java99 private LockInfo lock; field in class:ThreadInfo
119 * @param lockOwner the thread holding the lock
120 * @param blockedCount Number of times blocked to enter a lock
121 * @param blockedTime Approx time blocked to enter a lock
122 * @param waitedCount Number of times waited on a lock
123 * @param waitedTime Approx time waited on a lock
144 * @param lockOwner the thread holding the lock
145 * @param blockedCount Number of times blocked to enter a lock
146 * @param blockedTime Approx time blocked to enter a lock
147 * @param waitedCount Number of times waited on a lock
[all...]
/openjdk7/jdk/src/share/classes/java/nio/file/spi/
H A DFileSystemProvider.java78 // lock using when loading providers
79 private static final Object lock = new Object(); field in class:FileSystemProvider
158 synchronized (lock) {
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DArrayBlockingQueue.java103 /** Main lock guarding all access */
104 final ReentrantLock lock; field in class:ArrayBlockingQueue
150 * Call only when holding lock.
161 * Call only when holding lock.
176 * Call only when holding lock.
227 lock = new ReentrantLock(fair);
228 notEmpty = lock.newCondition();
229 notFull = lock.newCondition();
252 final ReentrantLock lock = this.lock;
[all...]

Completed in 915 milliseconds

123456789