Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for compileCallback (0.14 sec)

  1. src/runtime/syscall_windows.go

    const callbackMaxFrame = 64 * goarch.PtrSize
    
    // compileCallback converts a Go function fn into a C function pointer
    // that can be passed to Windows APIs.
    //
    // On 386, if cdecl is true, the returned C function will use the
    // cdecl calling convention; otherwise, it will use stdcall. On amd64,
    // it always uses fastcall. On arm, it always uses the ARM convention.
    //
    //go:linkname compileCallback syscall.compileCallback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/syscall/syscall_windows.go

    	return e == EINTR || e == EMFILE || e.Timeout()
    }
    
    func (e Errno) Timeout() bool {
    	return e == EAGAIN || e == EWOULDBLOCK || e == ETIMEDOUT
    }
    
    // Implemented in runtime/syscall_windows.go.
    func compileCallback(fn any, cleanstack bool) uintptr
    
    // NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
    // This is useful when interoperating with Windows code requiring callbacks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  3. src/runtime/os_windows.go

    			if mp.resumesema != 0 {
    				stdcall1(_SetEvent, mp.resumesema)
    			}
    		}
    		return 0
    	}
    	params := _DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS{
    		callback: compileCallback(*efaceOf(&fn), true),
    	}
    	handle := uintptr(0)
    	stdcall3(powerRegisterSuspendResumeNotification, _DEVICE_NOTIFY_CALLBACK,
    		uintptr(unsafe.Pointer(&params)), uintptr(unsafe.Pointer(&handle)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
Back to top