Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,076 for Receive (0.12 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/Connection.java

    import org.gradle.internal.dispatch.Receive;
    
    /**
     * <p>A messaging endpoint which allows push-style dispatch and pull-style receive.
     *
     * <p>Implementations are not guaranteed to be completely thread-safe.
     * However, the implementations:
     * <ul>
     * <li>should allow separate threads for dispatching and receiving, i.e. single thread that dispatches
     * and a different single thread that receives should be perfectly safe</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientTest.groovy

            1 * connection.dispatch({ it instanceof Build })
            1 * connection.receive() >> Stub(DaemonUnavailable)
            1 * connection.dispatch({ it instanceof Finished })
            1 * connection.stop()
            _ * connection2.daemon >> Stub(DaemonConnectDetails)
            2 * connection2.receive() >>> [Stub(BuildStarted), new Success(resultMessage)]
            0 * connection._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/resolver/KotlinBuildScriptModelRepositoryTest.kt

            )
    
            // now we expect to receive the most recent request since the last request that got a response,
            // that's the last request in our list of pending tasks
            val (reqLast, asyncRespLast) = pendingTasks.last()
            assertThat(
                pendingRequest.receive(),
                sameInstance(reqLast)
            )
    
            // submit the second (and last) response
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/inet/TcpConnectorTest.groovy

            thread.blockUntil.closed
    
            then:
            connection.receive() == "bye"
            connection.receive() == null
    
            cleanup:
            connection?.stop()
            acceptor?.stop()
        }
    
        def "returns null on failure to receive due to truncated input"() {
            given:
            def incomingSerializer = { Encoder encoder, String value ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/SynchronizedDispatchConnection.java

            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public T receive() {
            //in case one wants to synchronize this method,
            //bear in mind that it is blocking so it cannot share the same lock as others
            T result = delegate.receive();
            LOGGER.debug("thread {}: received {}", Thread.currentThread().getId(), result == null ? "null" : result.getClass());
            return result;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/runtime/chan_test.go

    				}
    			}()
    			for i := 0; i < 100; i++ {
    				v, ok := <-c
    				if !ok {
    					t.Fatalf("chan[%d]: receive failed, expected %v", chanCap, i)
    				}
    				if v != i {
    					t.Fatalf("chan[%d]: received %v, expected %v", chanCap, v, i)
    				}
    			}
    
    			// Send 1000 integers in 4 goroutines,
    			// ensure that we receive what we send.
    			const P = 4
    			const L = 1000
    			for p := 0; p < P; p++ {
    				go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClientConnection.java

                }
            }
        }
    
        @Override
        @Nullable
        public Message receive() throws DaemonConnectionException {
            try {
                return connection.receive();
            } catch (MessageIOException e) {
                LOG.debug("Problem receiving message to the daemon. Performing 'on failure' operation...");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 06:43:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. src/runtime/sigqueue.go

    			}
    		}
    
    		// Wait for updates to be available from signal sender.
    	Receive:
    		for {
    			switch sig.state.Load() {
    			default:
    				throw("signal_recv: inconsistent state")
    			case sigIdle:
    				if sig.state.CompareAndSwap(sigIdle, sigReceiving) {
    					if GOOS == "darwin" || GOOS == "ios" {
    						sigNoteSleep(&sig.note)
    						break Receive
    					}
    					notetsleepg(&sig.note, -1)
    					noteclear(&sig.note)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/expr0.go

    	b7 = -b0 /* ERROR "not defined" */
    	b8 = ^b0 /* ERROR "not defined" */
    	b9 = *b0 /* ERROR "cannot indirect" */
    	b10 = &true /* ERROR "cannot take address" */
    	b11 = &b0
    	b12 = <-b0 /* ERROR "cannot receive" */
    	b13 = & & /* ERROR "cannot take address" */ b0
    	b14 = ~ /* ERROR "cannot use ~ outside of interface or type constraint" */ b0
    
    	// byte
    	_ = byte(0)
    	_ = byte(- /* ERROR "overflows" */ 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DefaultDaemonConnection.java

            // 2. Stop the connection. This means that the thread receiving from the connection will receive a null and finish up.
            // 3. Stop receiving incoming messages. Blocks until the receive thread has finished. This will notify the stdin and receive queues to signal end of input.
            // 4. Stop the receive queue, to unblock any threads blocked in receive().
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top