Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 268 for enter (0.01 sec)

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

      private String leave() {
        return "leave";
      }
    
      public final void testMutualExclusion() throws Exception {
        thread1.callAndAssertReturns(enter());
        thread2.callAndAssertBlocks(enter());
        thread1.callAndAssertReturns(leave());
        thread2.assertPriorCallReturns(enter());
      }
    
      public final void testTryEnter() throws Exception {
        thread1.callAndAssertReturns(true, tryEnter());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/Monitor.java

          }
        };
      }
    
      /** Enters this monitor. Blocks indefinitely. */
      public void enter() {
        lock.lock();
      }
    
      /**
       * Enters this monitor. Blocks at most the given time.
       *
       * @return whether the monitor was entered
       * @since 28.0 (but only since 33.4.0 in the Android flavor)
       */
      public boolean enter(Duration time) {
        return enter(toNanosSaturated(time), TimeUnit.NANOSECONDS);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

       * methods that do not take an explicit timeout value, a single test case is generated only if the
       * implicit timeout of that method matches the given timeoutsToUse. For example, enter() is
       * treated like enter(MAX, MILLIS) and tryEnter() is treated like enter(0, MILLIS).
       */
      private static void addTests(
          TestSuite suite,
          Method method,
          Scenario scenario,
          TimeoutsToUse timeoutsToUse,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      public <T> T[] toArray(T[] a) {
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return q.toArray(a);
        } finally {
          monitor.leave();
        }
      }
    
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public String toString() {
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return q.toString();
        } finally {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       *
       * @return the number of elements in this queue
       */
      @CanIgnoreReturnValue
      @Override
      public int size() {
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return count;
        } finally {
          monitor.leave();
        }
      }
    
      // this doc comment is a modified copy of the inherited doc comment,
      // without the reference to unlimited queues.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/promotion/StartReleaseCycle.kt

                    description = "Enter the git 'user.email' configuration to commit change under",
                    display = ParameterDisplay.PROMPT,
                    allowEmpty = true,
                )
                text(
                    "confirmationCode",
                    "",
                    label = "Confirmation Code",
                    description = "Enter the value 'startCycle' (no quotes) to confirm the promotion",
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Mar 20 06:13:56 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/promotion/PublishRelease.kt

                    description = "Enter the git 'user.email' configuration to commit change under",
                    display = ParameterDisplay.PROMPT,
                    allowEmpty = true,
                )
                text(
                    "confirmationCode",
                    "",
                    label = "Confirmation Code",
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jul 24 03:08:48 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/common/help.jsp

    <dl>
    	<dt>Field</dt>
    	<dd>
    		You can search any field by typing the field name followed by a colon
    		":" and then the term you are looking for. If you want to find
    		documents which has "Fess" as the document title, you can enter:
    		<pre>title:Fess</pre>
    		The available fields are "url", "host", "site", "title", "content",
    		"content_length", "last_modified" and "mimetype", and they are
    		customizable.
    	</dd>
    	<dt>Sort</dt>
    	<dd>
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Mon Feb 26 14:01:31 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        verifyOccupiedMethodsInAnotherThread(monitor, false, false, 0);
        monitor.enter();
        try {
          verifyOccupiedMethodsInCurrentThread(monitor, true, true, 1);
          verifyOccupiedMethodsInAnotherThread(monitor, true, false, 0);
          monitor.enter();
          try {
            verifyOccupiedMethodsInCurrentThread(monitor, true, true, 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        verifyOccupiedMethodsInAnotherThread(monitor, false, false, 0);
        monitor.enter();
        try {
          verifyOccupiedMethodsInCurrentThread(monitor, true, true, 1);
          verifyOccupiedMethodsInAnotherThread(monitor, true, false, 0);
          monitor.enter();
          try {
            verifyOccupiedMethodsInCurrentThread(monitor, true, true, 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top