Thread Management

Overview

This section describes types and facilities for thread creation and management. More…

import "sys_Thread.jnc"

// classes

class sys.Thread;

// global functions

uintptr_t sys.getCurrentThreadId();
uint_t sys.getCurrentProcessId();
string_t errorcode sys.getProcessImageName(uint_t pid);

Detailed Documentation

This section describes types and facilities for thread creation and management.

Global Functions

uintptr_t sys.getCurrentThreadId()

Returns the thread identifier (TID) of the current thread.

Translates to GetCurrentThreadId on Windows and pthread_self on POSIX.

uint_t sys.getCurrentProcessId()

Returns the process identifier (PID) of the current process.

Translates to GetCurrentProcessId on Windows and getpid on POSIX.