Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for acquirem (0.23 sec)

  1. src/os/exec_unix.go

    	if err != nil {
    		return nil, err
    	}
    	if ready {
    		// Mark the process done now, before the call to Wait4,
    		// so that Process.pidSignal will not send a signal.
    		p.pidDeactivate(statusDone)
    		// Acquire a write lock on sigMu to wait for any
    		// active call to the signal method to complete.
    		p.sigMu.Lock()
    		p.sigMu.Unlock()
    	}
    
    	var (
    		status syscall.WaitStatus
    		rusage syscall.Rusage
    		pid1   int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    	}
    
    	// Lock the upload, to prevent duplicate uploads.
    	{
    		lockname := newname + ".lock"
    		lockfile, err := os.OpenFile(lockname, os.O_CREATE|os.O_EXCL, 0666)
    		if err != nil {
    			u.logger.Printf("Failed to acquire lock %s: %v", lockname, err)
    			return false
    		}
    		_ = lockfile.Close()
    		defer os.Remove(lockname)
    	}
    
    	endpoint := u.uploadServerURL + "/" + fdate
    	b := bytes.NewReader(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentingClasspathFileTransformer.java

            final File lockFile = new File(destDir, destFileName + ".lock");
            final FileLock fileLock = exclusiveLockFor(lockFile);
            try {
                if (receipt.isFile()) {
                    // Lock was acquired after a concurrent writer had already finished.
                    return transformed;
                }
                transform(source, transformed, typeRegistry);
                try {
                    receipt.createNewFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:36:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/internal/poll/copy_file_range_linux.go

    	//
    	// Note that in the call to unix.CopyFileRange below, we use nil
    	// values for off_in and off_out. For the system call, this means
    	// "use and update the file offsets". That is why we must acquire
    	// locks for both file descriptors (and why this whole machinery is
    	// in the internal/poll package to begin with).
    	if err := dst.writeLock(); err != nil {
    		return 0, err
    	}
    	defer dst.writeUnlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 17:40:10 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. src/runtime/os_openbsd.go

    		var ts timespec
    		ts.setNsec(ns + nanotime())
    		tsp = &ts
    	}
    
    	for {
    		v := atomic.Load(&gp.m.waitsemacount)
    		if v > 0 {
    			if atomic.Cas(&gp.m.waitsemacount, v, v-1) {
    				return 0 // semaphore acquired
    			}
    			continue
    		}
    
    		// Sleep until woken by semawakeup or timeout; or abort if waitsemacount != 0.
    		//
    		// From OpenBSD's __thrsleep(2) manual:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/variable_info_util.cc

        if (prev == mu) {
          // It is an error to pass the same variable handle twice to the same XLA
          // cluster because we would not handle variable updates correctly.  Any
          // locks we have already acquired will be released when the VariableInfo
          // objects are destroyed.
          // TODO(b/128495870) Add support for passing aliased resource variables.
          return errors::Unimplemented("Duplicate variable passed to XLA cluster");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. src/runtime/rwmutex.go

    // directly, both for semantic and internal ranking. rLock is only held
    // temporarily inside the rlock/lock methods, so it uses readRankInternal to
    // represent internal ranking. Semantic ranking is represented by a separate
    // acquire of readRank for the duration of a read lock.
    //
    // The lock ranking must document this ordering:
    //   - readRankInternal is a leaf lock.
    //   - readRank is taken before readRankInternal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. src/runtime/sys_openbsd2.go

    // mmap is used to do low-level memory allocation via mmap. Don't allow stack
    // splits, since this function (used by sysAlloc) is called in a lot of low-level
    // parts of the runtime and callers often assume it won't acquire any locks.
    //
    //go:nosplit
    func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
    	args := struct {
    		addr            unsafe.Pointer
    		n               uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h

      template <typename U> linked_ptr(linked_ptr<U> const& ptr) { copy(&ptr); }
      linked_ptr(linked_ptr const& ptr) {  // NOLINT
        assert(&ptr != this);
        copy(&ptr);
      }
    
      // Assignment releases the old value and acquires the new.
      template <typename U> linked_ptr& operator=(linked_ptr<U> const& ptr) {
        depart();
        copy(&ptr);
        return *this;
      }
    
      linked_ptr& operator=(linked_ptr const& ptr) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/cmd/go/scriptconds_test.go

    		// number of net tests that can run concurrently so that the overall number
    		// of network connections won't exceed the limit.
    		_, dup := scriptNetEnabled.LoadOrStore(t, true)
    		if !dup {
    			// Acquire a net token for this test until the test completes.
    			netTestSem <- struct{}{}
    			t.Cleanup(func() {
    				<-netTestSem
    				scriptNetEnabled.Delete(t)
    			})
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top