Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 556 for closeFn (0.14 sec)

  1. src/cmd/internal/objabi/pkgspecial.go

    	NoRaceFunc bool
    
    	// AllowAsmABI indicates that assembly in this package is allowed to use ABI
    	// selectors in symbol names. Generally this is needed for packages that
    	// interact closely with the runtime package or have performance-critical
    	// assembly.
    	AllowAsmABI bool
    }
    
    var runtimePkgs = []string{
    	"runtime",
    
    	"internal/runtime/atomic",
    	"internal/runtime/exithook",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/runtime/chan.go

    	if c == nil {
    		panic(plainError("close of nil channel"))
    	}
    
    	lock(&c.lock)
    	if c.closed != 0 {
    		unlock(&c.lock)
    		panic(plainError("close of closed channel"))
    	}
    
    	if raceenabled {
    		callerpc := getcallerpc()
    		racewritepc(c.raceaddr(), callerpc, abi.FuncPCABIInternal(closechan))
    		racerelease(c.raceaddr())
    	}
    
    	c.closed = 1
    
    	var glist gList
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

                    private Boolean closed = false
    
                    void setColor(String color) {
                        assert !closed
                        println('(' + color + ')')
                    }
    
                    @Override
                    void close() {
                        println '(closed)'
                        closed = true
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testCopyToAppendable_doesNotCloseIfWriter() throws IOException {
        TestWriter writer = new TestWriter();
        assertFalse(writer.closed());
        source.copyTo(writer);
        assertFalse(writer.closed());
      }
    
      public void testClosesOnErrors_copyingToCharSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. cmd/erasure-decode.go

    				case errors.Is(err, errDiskNotFound):
    					atomic.AddInt32(&disksNotFound, 1)
    				}
    
    				// This will be communicated upstream.
    				p.orgReaders[bufIdx] = nil
    				if br, ok := p.readers[i].(io.Closer); ok {
    					br.Close()
    				}
    				p.readers[i] = nil
    
    				// Since ReadAt returned error, trigger another read.
    				readTriggerCh <- true
    				return
    			}
    			newBufLK.Lock()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 21 14:36:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. src/net/http/httputil/reverseproxy_test.go

    	}
    	if !closeCheck.closed {
    		t.Errorf("body should have been closed")
    	}
    	if g, e := logBuf.String(), outErr.Error(); !strings.Contains(g, e) {
    		t.Errorf("ErrorLog %q does not contain %q", g, e)
    	}
    }
    
    type checkCloser struct {
    	closed bool
    }
    
    func (cc *checkCloser) Close() error {
    	cc.closed = true
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

        }
    
        @Override
        public void enqueue(Runnable task) {
            addToQueue(task);
        }
    
        private void addToQueue(Runnable task) {
            if (closed) {
                throw new IllegalStateException("The worker has already been closed. Cannot add more work to queue.");
            }
            try {
                workQueue.put(task);
            } catch (InterruptedException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. src/crypto/tls/conn.go

    	}
    
    	return n, nil
    }
    
    // Close closes the connection.
    func (c *Conn) Close() error {
    	// Interlock with Conn.Write above.
    	var x int32
    	for {
    		x = c.activeCall.Load()
    		if x&1 != 0 {
    			return net.ErrClosed
    		}
    		if c.activeCall.CompareAndSwap(x, x|1) {
    			break
    		}
    	}
    	if x != 0 {
    		// io.Writer and io.Closer should not be used concurrently.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy

        }
    
        def "can receive request for lock that is already closed"() {
            when:
            int port = handler.reservePort()
            handler.start(10, { assert false })
            sleep(300) //so that it starts receiving
    
            //close the lock
            handler.stop(10)
    
            //receive request for lock that is already closed
            client.maybePingOwner(port, 10, "lock 1", 50000, null)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/database/sql/convert.go

    			}
    			rows.closemu.Lock()
    			*d = Rows{
    				dc:          rows.dc,
    				releaseConn: func(error) {},
    				rowsi:       s,
    			}
    			// Chain the cancel function.
    			parentCancel := rows.cancel
    			rows.cancel = func() {
    				// When Rows.cancel is called, the closemu will be locked as well.
    				// So we can access rs.lasterr.
    				d.close(rows.lasterr)
    				if parentCancel != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top