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)
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.


No differences found