#include <thread.h>
#include <libc.h>
#include <stdlib.h>
#include <libarch/faddr.h>
#include <kernel/proc/uarg.h>
#include <fibril.h>
#include <str.h>
#include <async.h>
#include "private/thread.h"
Go to the source code of this file.
Defines | |
#define | THREAD_INITIAL_STACK_PAGES_NO 2 |
Functions | |
void | __thread_main (uspace_arg_t *uarg) |
Main thread function. | |
int | thread_create (void(*function)(void *), void *arg, const char *name, thread_id_t *tid) |
Create userspace thread. | |
void | thread_detach (thread_id_t thread) |
Detach thread. | |
void | thread_exit (int status) |
Terminate current thread. | |
thread_id_t | thread_get_id (void) |
Get current thread ID. | |
int | thread_join (thread_id_t thread) |
Join thread. |
Definition in file thread.c.