jakesmith/HPCC-Platform — comment on commit 7d2e17bb2657956e225be63eb2d16af26b94e128
File: system/jlib/jthread.cpp line 579
By jakesmith:

Oh, yes you're right, it was left in running, *until* join changed it, if can't be here unless it is in joining.

I cannot be s_running here, so the atomic_cas to switch it back to s_ready is wrong.
And, it can't be s_ready - which implies no exception.