@@ -38,6 +38,7 @@ ThreadSimpleImpl(Thread *parent_obj) :
_status = S_new;
_joinable = false;
+ _priority = TP_normal;
_priority_weight = 1.0;
_run_ticks = 0;
_start_time = 0.0;
@@ -80,6 +81,7 @@ ThreadSimpleImpl::
void ThreadSimpleImpl::
setup_main_thread() {
_status = S_running;
_priority_weight = _manager->_simple_thread_normal_weight;
_manager->set_current_thread(this);
@@ -104,6 +106,7 @@ start(ThreadPriority priority, bool joinable) {
_joinable = joinable;
+ _priority = priority;
switch (priority) {
case TP_low:
@@ -105,6 +105,7 @@ private:
Thread *_parent_obj;
bool _joinable;
Status _status;
+ ThreadPriority _priority;
// The relative weight of this thread, relative to other threads, in
// priority.