Examples of ReadWriteLock


Examples of org.apache.commons.transaction.locking.ReadWriteLock

     */
    public OptimisticMapWrapper(Map wrapped, MapFactory mapFactory, SetFactory setFactory, LoggerFacade logger) {
        super(wrapped, mapFactory, setFactory);
        activeTransactions = Collections.synchronizedSet(new HashSet());
        this.logger = logger;
        commitLock = new ReadWriteLock("COMMIT", logger);
    }
View Full Code Here

Examples of org.apache.fulcrum.yaafi.framework.util.ReadWriteLock

     */
    public void enableLogging(Logger logger)
    {
        Validate.notNull( logger, "logger" );
        this.logger = logger;
        this.readWriteLock = new ReadWriteLock(URN_YAAFI_KERNELLOCK, logger);
    }
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.ReadWriteLock

    @Override
    public void run() {
        object(new ReceiveProcess() {
            private static final long serialVersionUID = -8644268413754259515L;
        }.setChannel(_self).setReceiver(new ReadWriteLock() {
            public void readLock(Synch s) {
                switch (_status) {
                case UNLOCKED:
                    _status = Status.READLOCK;
                    _owners.add(s);
View Full Code Here

Examples of org.jpox.util.ReadWriteLock

    public void testBasicFunction() throws Throwable
    {
        ThreadGroup group = new ThreadGroup("ReadWriteLockTest");
        Thread[] threads = new Thread[NUM_TEST_THREADS];
        ReadWriteLock rwl = new ReadWriteLock();
        Object[] objs = new Object[1];

        /*
         * Create and start all the threads running the test.
         */
 
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.