Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IllegalMonitorStateException (0.08 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        Monitor monitor = new Monitor();
        assertThrows(IllegalMonitorStateException.class, () -> monitor.leave());
      }
    
      public void testGetWaitQueueLengthWithWrongMonitorThrowsIMSE() {
        Monitor monitor1 = new Monitor();
        Monitor monitor2 = new Monitor();
        FlagGuard guard = new FlagGuard(monitor2);
        assertThrows(IllegalMonitorStateException.class, () -> monitor1.getWaitQueueLength(guard));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        Monitor monitor = new Monitor();
        assertThrows(IllegalMonitorStateException.class, () -> monitor.leave());
      }
    
      public void testGetWaitQueueLengthWithWrongMonitorThrowsIMSE() {
        Monitor monitor1 = new Monitor();
        Monitor monitor2 = new Monitor();
        FlagGuard guard = new FlagGuard(monitor2);
        assertThrows(IllegalMonitorStateException.class, () -> monitor1.getWaitQueueLength(guard));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/Monitor.java

       * checked.
       *
       * <p>If a {@code Guard} is passed into any method of a {@code Monitor} other than the one it is
       * associated with, an {@link IllegalMonitorStateException} is thrown.
       *
       * @since 10.0
       */
      public abstract static class Guard {
    
        @Weak final Monitor monitor;
        final Condition condition;
    
        @GuardedBy("monitor.lock")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              monitor1.enter();
            }
            try {
              method.invoke(monitor1, arguments.toArray());
              fail("expected IllegalMonitorStateException");
            } catch (InvocationTargetException e) {
              assertEquals(IllegalMonitorStateException.class, e.getTargetException().getClass());
            } finally {
              if (occupyMonitor) {
                monitor1.leave();
              }
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
Back to top