Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2079 → Rev 2080

/trunk/kernel/generic/include/proc/thread.h
53,7 → 53,7
#define THREAD_STACK_SIZE STACK_SIZE
 
/** Thread states. */
enum state {
typedef enum {
Invalid, /**< It is an error, if thread is found in this state. */
Running, /**< State of a thread that is currently executing on some CPU. */
Sleeping, /**< Thread in this state is waiting for an event. */
61,7 → 61,7
Entering, /**< Threads are in this state before they are first readied. */
Exiting, /**< After a thread calls thread_exit(), it is put into Exiting state. */
Undead /**< Threads that were not detached but exited are in the Undead state. */
};
} state_t;
 
extern char *thread_states[];
 
/trunk/kernel/generic/include/typedefs.h
48,7 → 48,6
typedef unsigned long context_id_t;
 
typedef struct task task_t;
typedef enum state state_t;
typedef struct thread thread_t;
typedef struct context context_t;
typedef struct fpu_context fpu_context_t;