AddState
AddState(thread, time, RUNNING, NULL);
AddState(thread, time, READY, NULL);
AddState(thread, time, PREEMPTED, NULL);
AddState(thread, time, WAITING, waitObject);
AddState(thread, time, WAITING, NULL);
void AddState(const char* desc,
map.AddState(B_TRANSLATE("(None)"), new HasBitsFieldTester(0, both));
map.AddState(B_TRANSLATE("Either"), new HasBitsFieldTester(both));
map.AddState(B_TRANSLATE("Left"), new HasBitsFieldTester(left, right));
map.AddState(B_TRANSLATE("Right"), new HasBitsFieldTester(right, left));
map.AddState(B_TRANSLATE("Both"), new HasBitsFieldTester(left | right));