Threads.asm

This file defines thread management functions of PwnOS.

See Also

Authors

  • Neil G.  Dickson
Summary
Threads.asmThis file defines thread management functions of PwnOS.
Functions
GetCurrentThreadThis procedure returns the current thread handle.
CreateThreadThis procedure creates a new thread of the current process.
DestroyThreadThis procedure destroys a thread of the current process.
PauseThreadThis procedure pauses a thread of the current process.
ResumeThreadThis procedure resumes a thread of the current process.
Gateway Functions of Threads.asm
Functions
GetCurrentThreadUGateway function for GetCurrentThread
CreateThreadUGateway function for CreateThread
DestroyThreadUGateway function for DestroyThread
PauseThreadUGateway function for PauseThread
ResumeThreadUGateway function for ResumeThread
SleepThreadUGateway function for <SleepThread>
ScheduleThreadUGateway function for <ScheduleThread>

Functions

GetCurrentThread

This procedure returns the current thread handle.

Returns

CreateThread

This procedure creates a new thread of the current process.

Not Implemented

Parameters

StartAddressAddress of the function to be called when the thread starts
StackSizeSize of the thread’s stack in bytes (though it gets rounded up to page size)
FlagsThread creation flags
ParameterParameter to be sent to the thread’s function

Returns

DestroyThread

This procedure destroys a thread of the current process.

Not Implemented

Parameters

hThreadhandle of thread to destroy

PauseThread

This procedure pauses a thread of the current process.

Not Implemented

Parameters

hThreadhandle of thread to pause

ResumeThread

This procedure resumes a thread of the current process.

Not Implemented

Parameters

hThreadhandle of thread to resume

Gateway Functions of Threads.asm

Summary
Functions
GetCurrentThreadUGateway function for GetCurrentThread
CreateThreadUGateway function for CreateThread
DestroyThreadUGateway function for DestroyThread
PauseThreadUGateway function for PauseThread
ResumeThreadUGateway function for ResumeThread
SleepThreadUGateway function for <SleepThread>
ScheduleThreadUGateway function for <ScheduleThread>

Functions

GetCurrentThreadU

Gateway function for GetCurrentThread

CreateThreadU

Gateway function for CreateThread

Not Implemented

DestroyThreadU

Gateway function for DestroyThread

Not Implemented

PauseThreadU

Gateway function for PauseThread

Not Implemented

ResumeThreadU

Gateway function for ResumeThread

Not Implemented

SleepThreadU

Gateway function for <SleepThread>

Not Implemented

ScheduleThreadU

Gateway function for <ScheduleThread>

Not Implemented

This procedure returns the current thread handle.
This procedure creates a new thread of the current process.
This procedure destroys a thread of the current process.
This procedure pauses a thread of the current process.
This procedure resumes a thread of the current process.
This file defines structures and cosntants for thread management functions of PwnOS.
This file defines structures and cosntants for process management functions of PwnOS.
This file defines process management functions of PwnOS.
The Sync section of Core provides functions for mutual exclusion.
This structure defines the state of a thread.