update documentation; fix bug in executor; add typedefs to thread.h

This commit is contained in:
Marty Kraimer
2013-10-30 08:13:19 -04:00
parent 071806f12b
commit db10bed951
7 changed files with 797 additions and 584 deletions

View File

@@ -57,6 +57,7 @@ void Executor::run()
xx.lock();
}
CommandPtr command = head;
head = command->next;
if(command.get()==NULL) continue;
if(command.get()==shutdown.get()) break;
xx.unlock();
@@ -83,7 +84,8 @@ void Executor::execute(CommandPtr const & command)
moreWork.signal();
return;
}
if(tail.get()==NULL) return;
CommandPtr tail = head;
while(tail->next!=NULL) tail = tail->next;
tail->next = command;
}