Move threading support into listed-forces module

Added Doxygen, converted a macro to a const int.

Change-Id: I1e5579b1f80aecaf46827704cf5fd3b6d6285d80