Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for stdcall1 (0.11 sec)

  1. src/runtime/os_windows.go

    //go:nosplit
    func mdestroy(mp *m) {
    	if mp.highResTimer != 0 {
    		stdcall1(_CloseHandle, mp.highResTimer)
    		mp.highResTimer = 0
    	}
    	if mp.waitIocpTimer != 0 {
    		stdcall1(_CloseHandle, mp.waitIocpTimer)
    		mp.waitIocpTimer = 0
    	}
    	if mp.waitIocpHandle != 0 {
    		stdcall1(_CloseHandle, mp.waitIocpHandle)
    		mp.waitIocpHandle = 0
    	}
    	if mp.waitsema != 0 {
    		stdcall1(_CloseHandle, mp.waitsema)
    		mp.waitsema = 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  2. src/runtime/os_windows_arm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "unsafe"
    
    //go:nosplit
    func cputicks() int64 {
    	var counter int64
    	stdcall1(_QueryPerformanceCounter, uintptr(unsafe.Pointer(&counter)))
    	return counter
    }
    
    func checkgoarm() {
    	if goarm < 7 {
    		print("Need atomic synchronization instructions, coprocessor ",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 20 00:23:03 UTC 2018
    - 511 bytes
    - Viewed (0)
  3. src/runtime/signal_windows.go

    	var werflags uintptr
    	stdcall2(_WerGetFlags, currentProcess, uintptr(unsafe.Pointer(&werflags)))
    	stdcall1(_WerSetFlags, werflags|_WER_FAULT_REPORTING_NO_UI)
    }
    
    // enableWER re-enables Windows error reporting without fault reporting UI.
    func enableWER() {
    	// re-enable Windows Error Reporting
    	errormode := stdcall0(_GetErrorMode)
    	if errormode&_SEM_NOGPFAULTERRORBOX != 0 {
    		stdcall1(_SetErrorMode, errormode^_SEM_NOGPFAULTERRORBOX)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  4. src/runtime/os_windows_arm64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "unsafe"
    
    //go:nosplit
    func cputicks() int64 {
    	var counter int64
    	stdcall1(_QueryPerformanceCounter, uintptr(unsafe.Pointer(&counter)))
    	return counter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 19 00:40:56 UTC 2021
    - 339 bytes
    - Viewed (0)
  5. src/runtime/export_windows_test.go

    import "unsafe"
    
    const MaxArgs = maxArgs
    
    var (
    	OsYield                 = osyield
    	TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
    )
    
    func NumberOfProcessors() int32 {
    	var info systeminfo
    	stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
    	return int32(info.dwnumberofprocessors)
    }
    
    type ContextStub struct {
    	context
    }
    
    func (c ContextStub) GetPC() uintptr {
    	return c.ip()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:25:00 UTC 2024
    - 759 bytes
    - Viewed (0)
  6. src/runtime/netpoll_windows.go

    	errno := stdcall2(_NtCancelWaitCompletionPacket, mp.waitIocpHandle, 1)
    	switch errno {
    	case STATUS_CANCELLED:
    		// STATUS_CANCELLED is returned when the associated timer has already expired,
    		// in which automatically cancels the wait completion packet.
    		fallthrough
    	case STATUS_SUCCESS:
    		dt := -delay / 100 // relative sleep (negative), 100ns units
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/runtime/mem_windows.go

    // which prevents us from allocating more stack.
    //
    //go:nosplit
    func sysAllocOS(n uintptr) unsafe.Pointer {
    	return unsafe.Pointer(stdcall4(_VirtualAlloc, 0, n, _MEM_COMMIT|_MEM_RESERVE, _PAGE_READWRITE))
    }
    
    func sysUnusedOS(v unsafe.Pointer, n uintptr) {
    	r := stdcall3(_VirtualFree, uintptr(v), n, _MEM_DECOMMIT)
    	if r != 0 {
    		return
    	}
    
    	// Decommit failed. Usual reason is that we've merged memory from two different
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. src/runtime/syscall_aix.go

    }
    
    //go:linkname syscall_chdir syscall.chdir
    //go:nosplit
    func syscall_chdir(path uintptr) (err uintptr) {
    	_, err = syscall1(&libc_chdir, path)
    	return
    }
    
    //go:linkname syscall_chroot1 syscall.chroot1
    //go:nosplit
    func syscall_chroot1(path uintptr) (err uintptr) {
    	_, err = syscall1(&libc_chroot, path)
    	return
    }
    
    // like close, but must not split stack, for fork.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. src/runtime/os2_aix.go

    	return int32(r)
    }
    
    //go:nosplit
    func closefd(fd int32) int32 {
    	r, _ := syscall1(&libc_close, uintptr(fd))
    	return int32(r)
    }
    
    //go:nosplit
    func pipe() (r, w int32, errno int32) {
    	var p [2]int32
    	_, err := syscall1(&libc_pipe, uintptr(noescape(unsafe.Pointer(&p[0]))))
    	return p[0], p[1], int32(err)
    }
    
    // mmap calls the mmap system call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  10. src/runtime/syscall_windows.go

    }
    
    type callbackArgs struct {
    	index uintptr
    	// args points to the argument block.
    	//
    	// For cdecl and stdcall, all arguments are on the stack.
    	//
    	// For fastcall, the trampoline spills register arguments to
    	// the reserved spill slots below the stack arguments,
    	// resulting in a layout equivalent to stdcall.
    	//
    	// For arm, the trampoline stores the register arguments just
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top