Esempio n. 1
0
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;
}
Esempio n. 2
0
static int
awaitSpeechResponse (volatile SpeechDriverThread *sdt, int timeout) {
    return asyncAwaitCondition(timeout, testSpeechResponseReceived, (void *)sdt);
}
Esempio n. 3
0
void
asyncWait (int duration) {
  asyncAwaitCondition(duration, NULL, NULL);
}