Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UnlockOSThread (0.2 sec)

  1. src/cmd/cgo/internal/test/callback.go

    	// Make sure we don't blow out m->g0 stack.
    	for i := 0; i < 100000; i++ {
    		testCallbackPanic(t)
    	}
    }
    
    func testCallbackPanicLocked(t *testing.T) {
    	runtime.LockOSThread()
    	defer runtime.UnlockOSThread()
    
    	if !lockedOSThread() {
    		t.Fatal("runtime.LockOSThread didn't")
    	}
    	defer func() {
    		s := recover()
    		if s == nil {
    			t.Fatal("did not panic")
    		}
    		if s.(string) != "callback panic" {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg runtime, func SetFinalizer(interface{}, interface{})
    pkg runtime, func Stack([]uint8, bool) int
    pkg runtime, func ThreadCreateProfile([]StackRecord) (int, bool)
    pkg runtime, func UnlockOSThread()
    pkg runtime, func Version() string
    pkg runtime, method (*Func) Entry() uintptr
    pkg runtime, method (*Func) FileLine(uintptr) (string, int)
    pkg runtime, method (*Func) Name() string
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
Back to top