Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for iota (0.03 sec)

  1. src/sync/mutex.go

    	sema  uint32
    }
    
    // A Locker represents an object that can be locked and unlocked.
    type Locker interface {
    	Lock()
    	Unlock()
    }
    
    const (
    	mutexLocked = 1 << iota // mutex is locked
    	mutexWoken
    	mutexStarving
    	mutexWaiterShift = iota
    
    	// Mutex fairness.
    	//
    	// Mutex can be in 2 modes of operations: normal and starvation.
    	// In normal mode waiters are queued in FIFO order, but a woken up waiter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/sha3/sha3.go

    package sha3
    
    // spongeDirection indicates the direction bytes are flowing through the sponge.
    type spongeDirection int
    
    const (
    	// spongeAbsorbing indicates that the sponge is absorbing input.
    	spongeAbsorbing spongeDirection = iota
    	// spongeSqueezing indicates that the sponge is being squeezed.
    	spongeSqueezing
    )
    
    const (
    	// maxRate is the maximum size of the internal buffer. SHAKE-256
    	// currently needs the largest buffer.
    	maxRate = 168
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/os/exec_plan9.go

    	if e != nil {
    		return nil, &PathError{Op: "fork/exec", Path: name, Err: e}
    	}
    
    	return newPIDProcess(pid), nil
    }
    
    func (p *Process) writeProcFile(file string, data string) error {
    	f, e := OpenFile("/proc/"+itoa.Itoa(p.Pid)+"/"+file, O_WRONLY, 0)
    	if e != nil {
    		return e
    	}
    	defer f.Close()
    	_, e = f.Write([]byte(data))
    	return e
    }
    
    func (p *Process) signal(sig Signal) error {
    	switch p.pidStatus() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. src/os/user/cgo_lookup_unix.go

    	})
    	if err == syscall.ENOENT || (err == nil && !found) {
    		return nil, UnknownGroupIdError(strconv.Itoa(gid))
    	}
    	if err != nil {
    		return nil, fmt.Errorf("user: lookup groupid %d: %v", gid, err)
    	}
    	return buildGroup(&grp), nil
    }
    
    func buildGroup(grp *_C_struct_group) *Group {
    	g := &Group{
    		Gid:  strconv.Itoa(int(_C_gr_gid(grp))),
    		Name: _C_GoString(_C_gr_name(grp)),
    	}
    	return g
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top