ApertureOS
Data Structures | Enumerations | Functions
threads.h File Reference
#include "types.h"
#include "managers.h"
#include "idt.h"
Include dependency graph for threads.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Thread
 

Enumerations

enum  {
  THREAD_FLAGS_NONE = 0, THREAD_FLAGS_USER = 0, THREAD_FLAGS_KERNEL = 1, THREAD_FLAGS_FORK = 2,
  THREAD_FLAGS_VM86 = 4
}
 

Functions

void ThreadMan_Setup (void)
 
UID ThreadMan_CreateThread (ProcessEntryPoint entry, int argc, char **argv, uint32_t flags)
 
void ThreadMan_StartThread (UID id)
 
void ThreadMan_ExitThread (UID id)
 
void ThreadMan_DeleteThread (UID id)
 
UID ThreadMan_GetCurThreadID (void)
 
void * ThreadMan_GetCurThreadTLS (void)
 
void ThreadMan_Yield (void)
 
void ThreadMan_Lock (void)
 
void ThreadMan_Unlock (void)
 
void * ThreadMan_GetThreadTLS (UID id)
 

Enumeration Type Documentation

anonymous enum
Enumerator
THREAD_FLAGS_NONE 
THREAD_FLAGS_USER 
THREAD_FLAGS_KERNEL 
THREAD_FLAGS_FORK 
THREAD_FLAGS_VM86 

Function Documentation

UID ThreadMan_CreateThread ( ProcessEntryPoint  entry,
int  argc,
char **  argv,
uint32_t  flags 
)
void ThreadMan_DeleteThread ( UID  id)
void ThreadMan_ExitThread ( UID  id)
UID ThreadMan_GetCurThreadID ( void  )
void* ThreadMan_GetCurThreadTLS ( void  )
void* ThreadMan_GetThreadTLS ( UID  id)
void ThreadMan_Lock ( void  )
void ThreadMan_Setup ( void  )
void ThreadMan_StartThread ( UID  id)
void ThreadMan_Unlock ( void  )
void ThreadMan_Yield ( void  )