Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestLockOSThread (0.11 sec)

  1. src/runtime/runtime_linux_test.go

    		// would deschedule the goroutine instead.
    		ts := syscall.NsecToTimespec(d.Nanoseconds())
    		for {
    			if err := syscall.Nanosleep(&ts, &ts); err != syscall.EINTR {
    				return
    			}
    		}
    	}
    }
    
    func TestLockOSThread(t *testing.T) {
    	if pid != tid {
    		t.Fatalf("pid=%d but tid=%d", pid, tid)
    	}
    }
    
    // Test that error values are negative.
    // Use a misaligned pointer to get -EINVAL.
    func TestMincoreErrorSign(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:20:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top