model: split THREAD_* processing into process_thread_action()
authorBrian Norris <banorris@uci.edu>
Tue, 25 Sep 2012 22:28:31 +0000 (15:28 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 25 Sep 2012 22:31:00 +0000 (15:31 -0700)
commit0f64d3fcb719f47ab37928a0cbef98e958f8eac5
tree93b122f52a1ca8fc4f1460667ef21476bf919c6b
parent20d006a8c581117c6636e835cdbe36dac5d6ef93
model: split THREAD_* processing into process_thread_action()

The THREAD_* specific functionality can easily be in its own function.

Additionally, this patch:

* performs the trivial rearrangement of moving this code inside the
  work_queue loop, for consistency

* returns a "synchronized" status, so that THREAD_FINISH/THREAD_JOIN can be
  hooked into the work_queue update loop later
model.cc
model.h