model: refactor the get_thread() selection
authorBrian Norris <banorris@uci.edu>
Tue, 5 Mar 2013 00:32:16 +0000 (16:32 -0800)
committerBrian Norris <banorris@uci.edu>
Tue, 5 Mar 2013 00:32:16 +0000 (16:32 -0800)
commited060a0d38302898816bedc7205d0283fffcc6f1
tree10dbbfc19318c07fd9564d1e9a801bd756cfac4e
parent491b379adcbd0897c6f9ab5660d4d23afde3abb9
model: refactor the get_thread() selection

get_thread() may or may not be called with a non-NULL 'curr' argument,
and if it non-NULL, it still may not be used. Make the logic cleaner by
pulling the 'curr'-specific functionality out to its own function.
model.cc
model.h