Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ForkLock (0.14 sec)

  1. src/net/sock_cloexec_solaris.go

    		if err != nil {
    			return -1, os.NewSyscallError("socket", err)
    		}
    		return s, nil
    	}
    
    	// See ../syscall/exec_unix.go for description of ForkLock.
    	syscall.ForkLock.RLock()
    	s, err := socketFunc(family, sotype, proto)
    	if err == nil {
    		syscall.CloseOnExec(s)
    	}
    	syscall.ForkLock.RUnlock()
    	if err != nil {
    		return -1, os.NewSyscallError("socket", err)
    	}
    	if err = syscall.SetNonblock(s, true); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. src/os/pipe_unix.go

    	var p [2]int
    
    	// See ../syscall/exec.go for description of lock.
    	syscall.ForkLock.RLock()
    	e := syscall.Pipe(p[0:])
    	if e != nil {
    		syscall.ForkLock.RUnlock()
    		return nil, nil, NewSyscallError("pipe", e)
    	}
    	syscall.CloseOnExec(p[0])
    	syscall.CloseOnExec(p[1])
    	syscall.ForkLock.RUnlock()
    
    	return newFile(p[0], "|0", kindPipe, false), newFile(p[1], "|1", kindPipe, false), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 774 bytes
    - Viewed (0)
  3. src/internal/poll/sock_cloexec_solaris.go

    		}
    		return ns, sa, "", nil
    	}
    
    	// See ../syscall/exec_unix.go for description of ForkLock.
    	// It is probably okay to hold the lock across syscall.Accept
    	// because we have put fd.sysfd into non-blocking mode.
    	// However, a call to the File method will put it back into
    	// blocking mode. We can't take that risk, so no use of ForkLock here.
    	ns, sa, err := AcceptFunc(s)
    	if err == nil {
    		syscall.CloseOnExec(ns)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/sync/rwmutex.go

    // to acquire a read lock on rw. This exists because syscall.ForkLock
    // is an RWMutex, and we can't change that without breaking compatibility.
    // We don't need or want RWMutex semantics for ForkLock, and we use
    // this private API to avoid having to change the type of ForkLock.
    // For more details see the syscall package.
    //
    //go:linkname syscall_hasWaitingReaders syscall.hasWaitingReaders
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    	}
    
    	return waiter.result
    }
    
    func (e *quotaEvaluator) addWork(a *admissionWaiter) {
    	e.workLock.Lock()
    	defer e.workLock.Unlock()
    
    	ns := a.attributes.GetNamespace()
    	// this Add can trigger a Get BEFORE the work is added to a list, but this is ok because the getWork routine
    	// waits the worklock before retrieving the work to do, so the writes in this method will be observed
    	e.queue.Add(ns)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Flock_t.Type", Field, 0},
    		{"Flock_t.Whence", Field, 0},
    		{"FlushBpf", Func, 0},
    		{"FlushFileBuffers", Func, 0},
    		{"FlushViewOfFile", Func, 0},
    		{"ForkExec", Func, 0},
    		{"ForkLock", Var, 0},
    		{"FormatMessage", Func, 0},
    		{"Fpathconf", Func, 0},
    		{"FreeAddrInfoW", Func, 1},
    		{"FreeEnvironmentStrings", Func, 0},
    		{"FreeLibrary", Func, 0},
    		{"Fsid", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top