Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for removeOneCPU (0.09 sec)

  1. src/runtime/syscall_windows_test.go

    	if *runtime.TimeBeginPeriodRetValue != TIMERR_NOERROR {
    		t.Fatalf("timeBeginPeriod failed: it returned %d", *runtime.TimeBeginPeriodRetValue)
    	}
    }
    
    // removeOneCPU removes one (any) cpu from affinity mask.
    // It returns new affinity mask.
    func removeOneCPU(mask uintptr) (uintptr, error) {
    	if mask == 0 {
    		return 0, fmt.Errorf("cpu affinity mask is empty")
    	}
    	maskbits := int(unsafe.Sizeof(mask) * 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
Back to top