Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _lwp_unpark (0.16 sec)

  1. src/runtime/os_netbsd.go

    			return -1
    		}
    	}
    }
    
    //go:nosplit
    func semawakeup(mp *m) {
    	atomic.Xadd(&mp.waitsemacount, 1)
    	// From NetBSD's _lwp_unpark(2) manual:
    	// "If the target LWP is not currently waiting, it will return
    	// immediately upon the next call to _lwp_park()."
    	ret := lwp_unpark(int32(mp.procid), unsafe.Pointer(&mp.waitsemacount))
    	if ret != 0 && ret != _ESRCH {
    		// semawakeup can be called on signal stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top