IBNOS
Classes | Macros | Functions | Variables
thread.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <process/object.h>
#include <process/process.h>
#include <hardware/context.h>
#include <util/list.h>
Include dependency graph for thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  thread
 

Macros

#define DEFAULT_STACK_SIZE   0x10000
 
#define DEFAULT_TLB_SIZE   0x1000
 

Functions

struct threadthreadCreate (struct process *p, struct thread *original, void *eip)
 Creates a new kernel thread object. More...
 
struct threadthreadRun (struct thread *t)
 
void threadRelease (struct thread *t)
 
void threadSchedule ()
 Schedules threads until all process have been terminated. More...
 
uint32_t threadWait (struct thread *t, struct object *obj, uint32_t mode)
 Makes a kernel thread object wait for some waitable object. More...
 

Variables

struct linkedList threadList
 
struct threadlastFPUthread
 

Macro Definition Documentation

◆ DEFAULT_STACK_SIZE

#define DEFAULT_STACK_SIZE   0x10000

Definition at line 73 of file thread.h.

◆ DEFAULT_TLB_SIZE

#define DEFAULT_TLB_SIZE   0x1000

Definition at line 74 of file thread.h.

Function Documentation

◆ threadRelease()

void threadRelease ( struct thread t)

◆ threadRun()

struct thread* threadRun ( struct thread t)