Examples of unlock()


Examples of com.pcmsolutions.util.RWLock.unlock()

                                    se_handler.postSampleEvent(new SampleInitializeEvent(this, sample));
                                }
                                if (cb != null && sobj != null && cb.wantsNames())
                                    cb.setName(sample.intValue(), sobj.toString());
                            } finally {
                                sLock.unlock();
                            }
                        } finally {
                            device.unlock();
                        }
                        // yield();
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.PacketReference.unlock()

                            Globals.getBrokerResources().getString(
                                BrokerResources.W_TAKEOVER_MSG_ALREADY_ACKED,
                                pr.getSysMessageID()));
                        d.unputMessage(pr, RemoveReason.ACKNOWLEDGED);
                        pr.destroy();
                        pr.unlock();
                        continue;
                    }

                    if (consumers.length > 0) {
                        pr.setStoredWithInterest(true);
View Full Code Here

Examples of com.taobao.datasource.tm.TransactionLocal.unlock()

                    if (traceEnabled)
                        dump("Previous connection tracked by transaction " + cl + " tx=" + trackByTransaction);
                    return cl;
                }
            } finally {
                trackByTx.unlock(trackByTransaction);
            }

            // Need a new one for this transaction
            // This must be done outside the tx local lock, otherwise
            // the tx timeout won't work and get connection can do a lot of
View Full Code Here

Examples of com.twitter.common.zookeeper.DistributedLock.unlock()

    }

    public void unlock(String lockPath) {
        DistributedLock distributedLock = mLocks.get(lockPath);
        assert distributedLock != null: "mLocks.get(" + lockPath + ") != null";
        distributedLock.unlock();
        mLocks.remove(lockPath);
    }

    protected String getCommittedOffsetGroupPath() {
        if (Strings.isNullOrEmpty(mCommittedOffsetGroupPath)) {
View Full Code Here

Examples of com.vaadin.server.VaadinSession.unlock()

                        }
                    });
                }
                return beanStore;
            } finally {
                session.unlock();
            }
        }

        @Override
        public String getConversationId() {
View Full Code Here

Examples of com.webobjects.eoaccess.EODatabaseContext.unlock()

            .databaseContextForModelNamed(anEditingContext,
                aModelName);
        aDatabaseContext.lock();
        NSDictionary aRow = aDatabaseContext
            .snapshotForGlobalID(aGlobalID);
        aDatabaseContext.unlock();
        EOQualifier aQualifier = aRelationship
            .qualifierWithSourceRow(aRow);

        return aQualifier;
      }
View Full Code Here

Examples of com.webobjects.eocontrol.EOEditingContext.unlock()

        }
        state.setSerialized(o, eo);
        return eo;
      }
      finally {
        ec.unlock();
      }
    }
    catch (JSONException e) {
      throw new UnmarshallException("Failed to unmarshall EO.", e);
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EOObjectStore.unlock()

                adaptorChannel.evaluateExpression( expression );
            } finally {
                databaseChannel.cancelFetch();
            }
        } finally {
            osc.unlock();
        }
    }

    /**
     * Runs a select query against the database, obtaining the resulting raw rows.
View Full Code Here

Examples of com.webobjects.eocontrol.EOObjectStoreCoordinator.unlock()

          if(needRefresh && (eo instanceof ERXEnterpriseObject)) {
            ((ERXEnterpriseObject)eo).flushCaches();
          }
        }
        finally {
          osc.unlock();
        }
    }

    /**
     * Constructs a fetch specification that will only fetch the primary
View Full Code Here

Examples of com.webobjects.eocontrol.EOSharedEditingContext.unlock()

                _log.warn("Attempting to refresh a non-shared EO: " + entityName);
            }
        } catch (Exception e) {
            throw new NSForwardException(e, "Exception while refreshing shared objects for entity named " + entityName);
        } finally {
            sharedEC.unlock();
        }
    }

    /** Holds a reference to the random object */
    // FIXME: Not a thread safe object, access should be synchronized.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.