00001 #ifndef TASK_HXX_ 00002 # define TASK_HXX_ 00003 00004 namespace tasks 00005 { 00006 inline bool 00007 Task::is_terminated() const 00008 { 00009 return _task_state == task_terminated; 00010 } 00011 00012 inline const Task * 00013 Task::get_current_sub_task() const 00014 { 00015 if (_sub_tasks.empty()) 00016 return NULL; 00017 return _sub_tasks.front(); 00018 } 00019 } 00020 00021 #endif