Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for statement (0.28 sec)

  1. android/guava/src/com/google/common/util/concurrent/Monitor.java

     * } finally {
     *   monitor.leave();
     * }
     * }</pre>
     *
     * <p>A call to any of the <i>enter</i> methods with <b>boolean</b> return type should always appear
     * as the condition of an <i>if</i> statement containing a <i>try/finally</i> block to ensure that
     * the current thread leaves the monitor cleanly:
     *
     * <pre>{@code
     * if (monitor.tryEnter()) {
     *   try {
     *     // do things while occupying the monitor
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
Back to top