Lines Matching refs:shared
57 public static void test1(boolean shared, boolean trylock) throws Exception {
64 fl = fc.tryLock(0, fc.size(), shared);
66 fl = fc.lock(0, fc.size(), shared);
67 if (!shared)
70 if (shared)
80 public static void test2(boolean shared, boolean trylock) throws Exception {
87 fl = fc.tryLock(0, fc.size(), shared);
89 fl = fc.lock(0, fc.size(), shared);
90 if (shared)
93 if (!shared)
103 public static void test3(boolean shared, boolean trylock) throws Exception {
110 fl = fc.tryLock(0, fc.size(), shared);
112 fl = fc.lock(0, fc.size(), shared);