Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for sem_wait (0.13 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/os3_solaris.go

    //go:cgo_import_dynamic libc_sched_yield sched_yield "libc.so"
    //go:cgo_import_dynamic libc_sem_init sem_init "libc.so"
    //go:cgo_import_dynamic libc_sem_post sem_post "libc.so"
    //go:cgo_import_dynamic libc_sem_reltimedwait_np sem_reltimedwait_np "libc.so"
    //go:cgo_import_dynamic libc_sem_wait sem_wait "libc.so"
    //go:cgo_import_dynamic libc_setitimer setitimer "libc.so"
    //go:cgo_import_dynamic libc_sigaction sigaction "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/runtime/os2_aix.go

    //go:cgo_import_dynamic libc_sched_yield sched_yield "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_sem_init sem_init "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_sem_post sem_post "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_sem_timedwait sem_timedwait "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_sem_wait sem_wait "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setitimer setitimer "libc.a/shr_64.o"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd.go

    	}
    	return sendfile(outfd, infd, offset, count)
    }
    
    func Fstatvfs(fd int, buf *Statvfs_t) (err error) {
    	return Fstatvfs1(fd, buf, ST_WAIT)
    }
    
    func Statvfs(path string, buf *Statvfs_t) (err error) {
    	return Statvfs1(path, buf, ST_WAIT)
    }
    
    /*
     * Exposed directly
     */
    //sys	Access(path string, mode uint32) (err error)
    //sys	Adjtime(delta *Timeval, olddelta *Timeval) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go

    	SYS_KSEM_CLOSE               = 400 // { int ksem_close(semid_t id); }
    	SYS_KSEM_POST                = 401 // { int ksem_post(semid_t id); }
    	SYS_KSEM_WAIT                = 402 // { int ksem_wait(semid_t id); }
    	SYS_KSEM_TRYWAIT             = 403 // { int ksem_trywait(semid_t id); }
    	SYS_KSEM_INIT                = 404 // { int ksem_init(semid_t *idp, unsigned int value); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 36.1K bytes
    - Viewed (0)
Back to top