threads, model, schedule: refactor thread joining
authorBrian Norris <banorris@uci.edu>
Wed, 12 Sep 2012 02:48:38 +0000 (19:48 -0700)
committerBrian Norris <banorris@uci.edu>
Wed, 12 Sep 2012 02:52:34 +0000 (19:52 -0700)
commit2cd14a2ba5f68a5bd35c1094c9d5a83891b483f8
treee1bd2e4e887569cc907a5b163765ae8d86591bd4
parentfb586a0c8293b0acfa681820e9c3ded9462b689d
threads, model, schedule: refactor thread joining

The Thread can hold a list of ModelAction (instead of Threads) that are waiting
for its completion. This will give the exiting Thread a better ability to
handle the event.

This also deletes Scheduler::wait, since it is no superceded by Scheduler::sleep.
model.cc
schedule.cc
schedule.h
threads.h