add: if (acquire_sem(fThreadSem) != B_OK) throw CppUnit::Exception("BThreadManager::LaunchThread() -- Error acquiring thread semaphore");
context: BThreadManager<TestClass, ExpectedException>::LaunchThread(CppUnit::TestResult *result) {	if (IsRunning())		return B_ALREADY_RUNNING;	fTestResult = result;	fID = spawn_thread((thread_entry)(BThreadManager::EntryFunction),		fName.c_str(), B_NORMAL_PRIORITY, this);						status_t err;	if (fID == B_NO_MORE_THREADS || fID == B_NO_MEMORY) {		err = fID;		fID = 0;	} else {		err = resume_thread(fID);	}	return err;}