Package org.apache.derbyTesting.functionTests.util

Examples of org.apache.derbyTesting.functionTests.util.Barrier.await()


                // so, just executing it here
                s.executeUpdate("update account set b = b + 11");
                s.close();
               
                // Tell the main thread that we've locked the row
                barrier.await();
               
                // The main thread now can continue - give it a
                // second to do its stuff
                //Thread.sleep(1000L);
                // we check that the 'wait' state is gone at the main thread,
View Full Code Here


                "('derby.locks.waitTimeout','5')");
        commit();
       
        // Now that we've found the wait state, tell the helper thread we
        // are done
        barrier.await();
       
        // now that we've released the helper thread, we can safely let
        // the test fail if the results of the earlier check were bad
        assertTrue("expected to find a 'WAIT' state, but did not", found);
       
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.