00001
00002
00003 #ifndef thread_state_h
00004 #define thread_state_h
00005
00006
00007
00008
00009
00010
00011
00012 enum Thread_state
00013 {
00014 Thread_invalid = 0,
00015 Thread_ready = 0x1,
00016 Thread_utcb_ip_sp = 0x2,
00017 Thread_receiving = 0x4,
00018 Thread_polling = 0x8,
00019 Thread_ipc_in_progress = 0x10,
00020 Thread_send_in_progress = 0x20,
00021 Thread_busy = 0x40,
00022 Thread_lipc_ready = 0x80,
00023
00024
00025
00026 Thread_cancel = 0x100,
00027 Thread_dead = 0x200,
00028 Thread_polling_long = 0x400,
00029 Thread_busy_long = 0x800,
00030 Thread_rcvlong_in_progress = 0x1000,
00031 Thread_delayed_deadline = 0x2000,
00032 Thread_delayed_ipc = 0x4000,
00033 Thread_fpu_owner = 0x8000,
00034 Thread_alien = 0x10000,
00035
00036 Thread_dis_alien = 0x20000,
00037
00038
00039
00040 Thread_ipc_sending_mask = Thread_send_in_progress |
00041 Thread_polling |
00042 Thread_polling_long,
00043
00044 Thread_ipc_receiving_mask = Thread_receiving |
00045 Thread_busy |
00046 Thread_rcvlong_in_progress |
00047 Thread_busy_long,
00048
00049 Thread_ipc_mask = Thread_ipc_in_progress |
00050 Thread_ipc_sending_mask |
00051 Thread_ipc_receiving_mask,
00052 };
00053
00054 #endif // thread_state_h