CS350 COS
COS
Loading...
Searching...
No Matches
Thread Struct Reference

#include <thread.h>

Collaboration diagram for Thread:
[legend]

Public Member Functions

 TAILQ_ENTRY (Thread) threadList
 
 TAILQ_ENTRY (Thread) schedQueue
 
 TAILQ_ENTRY (Thread) semaQueue
 
 TAILQ_ENTRY (Thread) chanQueue
 

Data Fields

ThreadArch arch
 
ASspace
 
uintptr_t kstack
 
uintptr_t ustack
 
uint64_t tid
 
uint64_t refCount
 
struct Processproc
 
int schedState
 
KTimerEventtimerEvt
 
uintptr_t exitValue
 
WaitChannelchan
 
uint64_t ctxSwitches
 
uint64_t userTime
 
uint64_t kernTime
 
uint64_t waitTime
 
uint64_t waitStart
 

Detailed Description

Definition at line 31 of file thread.h.

Member Function Documentation

◆ TAILQ_ENTRY() [1/4]

Thread::TAILQ_ENTRY ( Thread  )

◆ TAILQ_ENTRY() [2/4]

Thread::TAILQ_ENTRY ( Thread  )

◆ TAILQ_ENTRY() [3/4]

Thread::TAILQ_ENTRY ( Thread  )

◆ TAILQ_ENTRY() [4/4]

Thread::TAILQ_ENTRY ( Thread  )

Field Documentation

◆ arch

ThreadArch Thread::arch

Definition at line 32 of file thread.h.

◆ chan

WaitChannel* Thread::chan

Definition at line 48 of file thread.h.

◆ ctxSwitches

uint64_t Thread::ctxSwitches

Definition at line 51 of file thread.h.

◆ exitValue

uintptr_t Thread::exitValue

Definition at line 45 of file thread.h.

◆ kernTime

uint64_t Thread::kernTime

Definition at line 53 of file thread.h.

◆ kstack

uintptr_t Thread::kstack

Definition at line 34 of file thread.h.

◆ proc

struct Process* Thread::proc

Definition at line 39 of file thread.h.

◆ refCount

uint64_t Thread::refCount

Definition at line 37 of file thread.h.

◆ schedState

int Thread::schedState

Definition at line 42 of file thread.h.

◆ space

AS* Thread::space

Definition at line 33 of file thread.h.

◆ tid

uint64_t Thread::tid

Definition at line 36 of file thread.h.

◆ timerEvt

KTimerEvent* Thread::timerEvt

Definition at line 44 of file thread.h.

◆ userTime

uint64_t Thread::userTime

Definition at line 52 of file thread.h.

◆ ustack

uintptr_t Thread::ustack

Definition at line 35 of file thread.h.

◆ waitStart

uint64_t Thread::waitStart

Definition at line 55 of file thread.h.

◆ waitTime

uint64_t Thread::waitTime

Definition at line 54 of file thread.h.


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