Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for sem_wait (0.19 sec)

  1. src/runtime/os_aix.go

    			throw("sem_timedwait")
    		}
    		return 0
    	}
    	for {
    		r1, err := sem_wait((*semt)(unsafe.Pointer(mp.waitsema)))
    		if r1 == 0 {
    			break
    		}
    		if err == _EINTR {
    			continue
    		}
    		throw("sem_wait")
    	}
    	return 0
    }
    
    //go:nosplit
    func semawakeup(mp *m) {
    	if sem_post((*semt)(unsafe.Pointer(mp.waitsema))) != 0 {
    		throw("sem_post")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. src/runtime/sema_test.go

    				Gosched()
    			}
    		}()
    	}
    
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		Semacquire(&sema)
    		atomic.CompareAndSwapUint32(&res, 0, 1)
    
    		Semrelease1(&sema, true, 0)
    		close(done)
    	}()
    	for SemNwait(&sema) == 0 {
    		Gosched() // wait for goroutine to block in Semacquire
    	}
    
    	// The crux of the test: we release the semaphore with handoff
    	// and immediately perform a CAS both here and in the waiter; we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 21 19:37:22 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go

    	Namlen    uint16
    	Type      uint8
    	Name      [512]int8
    	Pad_cgo_0 [3]byte
    }
    
    type Fsid struct {
    	X__fsid_val [2]int32
    }
    
    const (
    	PathMax = 0x400
    )
    
    const (
    	ST_WAIT   = 0x1
    	ST_NOWAIT = 0x2
    )
    
    const (
    	FADV_NORMAL     = 0x0
    	FADV_RANDOM     = 0x1
    	FADV_SEQUENTIAL = 0x2
    	FADV_WILLNEED   = 0x3
    	FADV_DONTNEED   = 0x4
    	FADV_NOREUSE    = 0x5
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go

    	Namlen    uint16
    	Type      uint8
    	Name      [512]int8
    	Pad_cgo_0 [3]byte
    }
    
    type Fsid struct {
    	X__fsid_val [2]int32
    }
    
    const (
    	PathMax = 0x400
    )
    
    const (
    	ST_WAIT   = 0x1
    	ST_NOWAIT = 0x2
    )
    
    const (
    	FADV_NORMAL     = 0x0
    	FADV_RANDOM     = 0x1
    	FADV_SEQUENTIAL = 0x2
    	FADV_WILLNEED   = 0x3
    	FADV_DONTNEED   = 0x4
    	FADV_NOREUSE    = 0x5
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go

    	Namlen    uint16
    	Type      uint8
    	Name      [512]int8
    	Pad_cgo_0 [3]byte
    }
    
    type Fsid struct {
    	X__fsid_val [2]int32
    }
    
    const (
    	PathMax = 0x400
    )
    
    const (
    	ST_WAIT   = 0x1
    	ST_NOWAIT = 0x2
    )
    
    const (
    	FADV_NORMAL     = 0x0
    	FADV_RANDOM     = 0x1
    	FADV_SEQUENTIAL = 0x2
    	FADV_WILLNEED   = 0x3
    	FADV_DONTNEED   = 0x4
    	FADV_NOREUSE    = 0x5
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go

    	Namlen    uint16
    	Type      uint8
    	Name      [512]int8
    	Pad_cgo_0 [3]byte
    }
    
    type Fsid struct {
    	X__fsid_val [2]int32
    }
    
    const (
    	PathMax = 0x400
    )
    
    const (
    	ST_WAIT   = 0x1
    	ST_NOWAIT = 0x2
    )
    
    const (
    	FADV_NORMAL     = 0x0
    	FADV_RANDOM     = 0x1
    	FADV_SEQUENTIAL = 0x2
    	FADV_WILLNEED   = 0x3
    	FADV_DONTNEED   = 0x4
    	FADV_NOREUSE    = 0x5
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.6K bytes
    - Viewed (0)
Back to top