int awaitActivityStopped (ActivityObject *activity) { int timeout = activity->methods->stopTimeout; if (!timeout) timeout = DEFAULT_ACTIVITY_STOP_TIMEOUT; if (asyncAwaitCondition(timeout, testActivityStopped, activity)) return 1; logActivityActionTimeout(activity, "stop"); return 0; }
static int awaitSpeechResponse (volatile SpeechDriverThread *sdt, int timeout) { return asyncAwaitCondition(timeout, testSpeechResponseReceived, (void *)sdt); }
void asyncWait (int duration) { asyncAwaitCondition(duration, NULL, NULL); }