The Möbius Operating System: thread_info_t struct Reference
HOME DOWNLOAD DOCUMENTATION SCREENSHOTS  

thread_info_t Struct Reference
[Threads]

User-mode thead information structure. More...

#include <defs.h>


Data Fields

thread_info_tinfo
 DS-relative pointer to this structure.

uint32_t id
process_info_tprocess
int status
void * param
void(* exception_handler )(void)
int(* entry )(void *)
context_t exception_info
void * wmgr_info
handle_t sync_io_event
 Handle to an event used for synchronous I/O, such as FsRead or FsWrite.


Detailed Description

User-mode thead information structure.

You can obtain a thread_info_t for the current thread by calling ThrGetThreadInfo. On the x86 the FS segment contains this structure.


Field Documentation

int(* thread_info_t::entry)(void*)
 

Pointer to the entry point function passed to ThrCreateThread

void(* thread_info_t::exception_handler)(void)
 

Pointer to the function called for each unhandled exception

context_t thread_info_t::exception_info
 

Copy of the thread's context at the time of the last exception

uint32_t thread_info_t::id
 

Unique thread identitier

thread_info_t* thread_info_t::info
 

DS-relative pointer to this structure.

Use this pointer to avoid FS-relative memory accesses

void* thread_info_t::param
 

Parameter passed to ThrCreateThread

process_info_t* thread_info_t::process
 

Pointer to this process's information structure

int thread_info_t::status
 

Result code from the last syscall

void* thread_info_t::wmgr_info
 

Pointer to the window manager's per-thread data structure


The documentation for this struct was generated from the following file:
Post a comment

From: