nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Data Fields
thread Struct Reference

쓰레드를 위한 구조체 정의 More...

#include <thread.h>

Collaboration diagram for thread:
Collaboration graph
[legend]

Public Types

enum  {
  CREATED = 0x00, READY = 0x01, DELETED = 0x02, RUNNING = 0x03,
  SLEEP = 0x04, ZOMBIE = 0x05
}
 

Data Fields

void * arch_data
 
struct thread_attr attr
 
struct list_head child
 
uint32_tesp
 
struct thread_file_ctxfile_ctx
 
struct list_head link
 
struct object object
 
struct threadparent
 
struct threadroot
 
void * sem
 
struct list_head sibling
 
enum thread:: { ... }  status
 
void * user_data
 

Detailed Description

쓰레드를 위한 구조체 정의

Definition at line 63 of file thread.h.

Member Enumeration Documentation

anonymous enum
Enumerator
CREATED 

생성된 상태

READY 

실행 가능한 상태

DELETED 

삭제된 상태

RUNNING 

실행 중인 상태

SLEEP 

Sleep 상태

ZOMBIE 

삭제 되었으나 자원 해제 안 됨

Definition at line 74 of file thread.h.

Field Documentation

void* arch_data
struct thread_attr attr

쓰레드 속성 정보에 대한 포인터

Definition at line 84 of file thread.h.

Referenced by execl(), execle(), execlp(), execv(), execvp(), execvpe(), and thread_get_stack_pointer().

struct list_head child

Definition at line 67 of file thread.h.

uint32_t* esp

최근의 스택 pointer

Definition at line 83 of file thread.h.

Referenced by do_irq(), page_fault_handler(), pthread_self(), and x86_util_get_ring().

struct thread_file_ctx* file_ctx
struct list_head link

Definition at line 69 of file thread.h.

struct object object

Definition at line 64 of file thread.h.

Referenced by pthread_cancel(), and thread_create().

struct thread* parent

부모 쓰레드 포인터

Definition at line 65 of file thread.h.

struct thread* root

최상위 부모 쓰레드 포인터

Definition at line 66 of file thread.h.

Referenced by onetime_map_init(), onetime_unmap(), and pthread_create().

void* sem

Definition at line 86 of file thread.h.

Referenced by sem_clear(), sem_destroy(), sem_post(), and sem_wait().

struct list_head sibling

Definition at line 68 of file thread.h.

enum { ... } status

현재 쓰레드 상태 정의

Referenced by thread_get_status(), and thread_set_status().

void* user_data

Definition at line 72 of file thread.h.

Referenced by pthread_cancel(), pthread_create(), pthread_init(), and thread_get_user_data().


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