Searched defs:lock (Results 1 - 25 of 26) sorted by relevance

12

/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/enterprise/transaction/jts/recovery/
H A DGMSCallBack.java93 private final static Object lock = new Object(); field in class:GMSCallBack
162 synchronized(lock) {
183 * Find records of not finished delegated recovery in the recovery lock file on
191 * Find records of not finished delegated recovery in the recovery lock file on
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/
H A DDynamicConfigListener.java271 logger.finest("Aquire reconfig lock");
273 Future lock = reconfigByPortLock.get(port);
275 logger.log(Level.FINEST, "Reconfig lock for port: {0} is {1}",
276 new Object[]{port, lock});
279 if (lock == null) {
284 lock = reconfigByPortLock.get(proxyPort);
286 logger.log(Level.FINEST, "Reconfig lock for proxyport: {0} is {1}",
287 new Object[]{proxyPort, lock});
294 if (lock != null) {
297 logger.finest("Waiting on reconfig lock");
325 releaseListenerLock(Lock lock) argument
[all...]
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/base/stats/
H A DEJBMethodStatsManagerImpl.java79 private Object lock = new Object(); field in class:EJBMethodStatsManagerImpl
105 synchronized (lock) {
119 synchronized (lock) {
135 synchronized (lock) {
197 synchronized (lock) {
201 synchronized (lock) {
H A DMethodMonitor.java64 private Object lock = new Object(); field in class:MethodMonitor
94 synchronized (lock) {
106 synchronized(lock) {
/glassfish-3.1.2/cluster/gms-bootstrap/src/main/java/org/glassfish/gms/bootstrap/
H A DGMSAdapterService.java110 static private final Object lock = new Object(); field in class:GMSAdapterService
165 synchronized(lock) {
182 synchronized(lock) {
257 synchronized(lock) {
326 synchronized(lock) {
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/common/util/admin/
H A DManagedFile.java102 * @param timeOut the max time in milliseconds to wait for a read or write lock
103 * @param maxHoldingTime the max time in milliseconds to hold the read or write lock
117 * @return the lock instance on the locked file.
119 * @throws TimeoutException if the lock cannot be obtained before the timeOut
131 * @return the lock instance on the locked file.
133 * @throws TimeoutException if the lock cannot be obtained before the timeOut
142 * Many threads can be requesting the shared read lock, we must keep track
144 * must call {@link RefCounterLock#unlock()} to release the lock, when the
145 * reference counter returns to zero, the file lock is release.
148 final java.util.concurrent.locks.Lock lock; field in class:ManagedFile.RefCounterLock
236 release(FileLock lock) argument
252 RefCounterLock(java.util.concurrent.locks.Lock lock, boolean read) argument
270 public void lock() { method in class:ManagedFile.RefCounterLock
[all...]
/glassfish-3.1.2/common/glassfish-naming/src/main/java/com/sun/enterprise/naming/impl/
H A DTransientContext.java75 // So add a read/write lock, which allows unlimited concurrent readers,
76 // and only imposes a global lock on relatively infrequent updates.
77 private static final ReadWriteLock lock = new ReentrantReadWriteLock() ; field in class:TransientContext
135 lock.writeLock().lock() ;
161 lock.writeLock().unlock();
174 lock.writeLock().lock();
194 lock.writeLock().unlock();
207 lock
[all...]
/glassfish-3.1.2/connectors/work-management/src/main/java/com/sun/enterprise/connectors/work/
H A DWorkCoordinator.java86 private final Object lock; field in class:WorkCoordinator
127 this.lock = new Object();
347 public void lock() { method in class:WorkCoordinator
354 synchronized (lock) {
357 lock.wait(timeout);
359 lock.wait();
368 synchronized (lock) {
370 lock.wait();
385 synchronized (lock) {
386 lock
[all...]
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/containers/util/pool/
H A DNonBlockingPool.java695 Object lock; field in class:NonBlockingPool.PoolResizeTimerTask
699 PoolResizeTimerTask(Object lock) { argument
700 this.lock = lock;
H A DAbstractPool.java402 Object lock; field in class:AbstractPool.AbstractPoolTimerTask
406 AbstractPoolTimerTask(Object lock) { argument
407 this.lock = lock;
/glassfish-3.1.2/ejb/ejb-container/src/main/java/org/glassfish/ejb/embedded/
H A DEJBContainerProviderImpl.java108 private static final Object lock = new Object(); field in class:EJBContainerProviderImpl
160 synchronized(lock) {
/glassfish-3.1.2/ejb/ejb-container/src/main/java/org/glassfish/ejb/startup/
H A DEjbDeployer.java134 private Object lock = new Object(); field in class:EjbDeployer
709 synchronized(lock) {
/glassfish-3.1.2/web/web-ajp/src/main/java/org/apache/jk/common/
H A DHandlerRequest.java118 * Thread lock.
120 private static Object lock = new Object(); field in class:HandlerRequest
410 synchronized(lock) {
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/logging/
H A DLogDomains.java301 static Lock lock = new ReentrantLock(); field in class:LogDomains
466 // The work-around is to ALWAYS lock in the order that the JDK bug
467 // is assuming. That means lock A-B-A instead of B-A
/glassfish-3.1.2/webservices/metro-glue/src/main/java/org/glassfish/webservices/metroglue/
H A DMetroContainer.java104 private static final Object lock = new Object(); field in class:MetroContainer
181 synchronized (lock) {
/glassfish-3.1.2/common/container-common/src/main/java/com/sun/enterprise/container/common/impl/
H A DEntityManagerWrapper.java925 public void lock(Object entity, LockModeType lockMode) { method in class:EntityManagerWrapper
931 _getDelegate().lock(entity, lockMode);
942 public void lock(Object entity, LockModeType lockMode, Map<String, Object> properties) { method in class:EntityManagerWrapper
948 _getDelegate().lock(entity, lockMode, properties);
/glassfish-3.1.2/installer/src/cpp/share/launcher/
H A Dzip_util.h181 void *lock; /* read lock */ member in struct:jzfile
H A Djava_md.unix.c114 * this program and put an exclusive lock on it. Note that if the default
380 static pthread_mutex_t lock; variable
415 if (dispatch && !pthread_mutex_lock(&lock))
423 pthread_mutex_unlock(&lock);
539 /* Initialize the lock */
544 if (pthread_mutexattr_settype(&lockattributes, PTHREAD_MUTEX_RECURSIVE) || pthread_mutex_init(&lock, &lockattributes))
571 pthread_mutex_destroy(&lock);
599 if ((funcs = LoadX11(JNI_TRUE)) != NULL && dispatch && !pthread_mutex_lock(&lock))
628 pthread_mutex_unlock(&lock);
665 if ((funcs = LoadX11(JNI_TRUE)) != NULL && dispatch && !pthread_mutex_lock(&lock))
[all...]
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/
H A DResourceHandle.java95 public final Object lock = new Object(); field in class:ResourceHandle
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/containers/
H A DEjbContainerUtilImpl.java142 private static Object lock = new Object(); field in class:EjbContainerUtilImpl
494 synchronized (lock) {
H A DEntityContainer.java151 * locked, always acquire the context lock first, then the Store lock.
153 * locks, always acquire the ejbObject lock first, then the Store lock.
2827 protected Object lock = new Object(); field in class:EntityContainer.LocalEJBObjectCacheVictimHandler
2841 synchronized (lock) {
2855 synchronized (lock) {
2884 synchronized (lock) {
2903 synchronized (lock) {
/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/enterprise/transaction/jts/
H A DJavaEETransactionManagerJTSDelegate.java126 private final static ReadWriteLock lock = new ReadWriteLock(); field in class:JavaEETransactionManagerJTSDelegate
626 return lock;
637 if(lock.isWriteLocked()){
643 lock.acquireWriteLock();
652 if(lock.isWriteLocked()){
653 lock.releaseWriteLock();
657 lock.releaseWriteLock();
681 public void lock() { method in class:JavaEETransactionManagerJTSDelegate.ReadWriteLock
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/
H A DPEAccessLogValve.java293 * Simple lock
295 private Object lock = new Object(); field in class:PEAccessLogValve
581 synchronized (lock){
650 synchronized(lock){
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/core/
H A DContainerBase.java225 private ReadWriteLock lock = new ReentrantReadWriteLock(); field in class:ContainerBase
226 protected Lock readLock = lock.readLock();
227 protected Lock writeLock = lock.writeLock();
395 readLock.lock();
419 writeLock.lock();
468 readLock.lock();
492 writeLock.lock();
541 readLock.lock();
565 writeLock.lock();
755 readLock.lock();
[all...]
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/java/com/sun/jdo/spi/persistence/support/sqlstore/
H A DSQLStateManager.java145 private final Semaphore lock; field in class:SQLStateManager
166 * Construct a new SQLStateManager so that it locks or does not lock as
174 this.lock = new NullSemaphore("SQLStateManager"); // NOI18N
176 this.lock = new SemaphoreImpl("SQLStateManager"); // NOI18N
3938 * @param acquireShareLock Acquire a shared lock during the update.
3963 // We need to lock fieldUpdateLock if there is a chance that
4557 lock.acquire();
4561 * Release lock.
4564 lock.release();

Completed in 83 milliseconds

12