Yeah.  Right.

Will update it to have 2 new functions - TmThreadTestThreadUnPauseWait() and NoWait().  Will then do a 

if (TestThreadUnPauseNowait()) {
    SetFlag(PAUSED);
    TestThreadUnPauseWait();
    UnsetFlag(PAUSED);
}