thread

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx unsafe.Pointer, cb uintptr) (handle.Handle, uint32, error)

Create creates a thread to execute within the virtual address space of the calling process.

func Open

func Open(access DesiredAccess, inheritHandle bool, threadID uint32) (handle.Handle, error)

Open opens an existing thread object.

func Terminate

func Terminate(handle handle.Handle, exitCode uint32) error

Terminate terminates the specified thread.

Types

type DesiredAccess

type DesiredAccess uint32

DesiredAccess defines the type alias for thread's access modifiers

const (
	// QueryLimitedInformation is required to get certain information from the thread objects (e.g. PID to which pertains some thread)
	QueryLimitedInformation DesiredAccess = 0x0800
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL