Lines Matching defs:ok
97 int ok = 1;
98 ok &= (CloseHandle(condition->waiting_sem_) != 0);
99 ok &= (CloseHandle(condition->received_sem_) != 0);
100 ok &= (CloseHandle(condition->signal_event_) != 0);
101 return !ok;
120 int ok = 1;
123 ok = SetEvent(condition->signal_event_);
126 ok &= (WaitForSingleObject(condition->received_sem_, INFINITE) !=
129 return !ok;
134 int ok;
141 ok = (WaitForSingleObject(condition->signal_event_, INFINITE) ==
143 ok &= ReleaseSemaphore(condition->received_sem_, 1, NULL);
145 return !ok;