bool_t ConditionWait(void* Handle,int Tick,void* Lock) { RCondVar p; RMutex m; p.SetHandle((int)Handle); m.SetHandle((int)Lock); // Increase the tick by one to mimic other platforms // which is -1 = Wait forever, 0 = Return // For Symbian, 0 = Wait forever Tick++; return p.TimedWait(m, Tick*1000) == KErrNone; }
void ConditionSignal(void* Handle) { RCondVar p; p.SetHandle((int)Handle); p.Signal(); }
void ConditionBroadcast(void* Handle) { RCondVar p; p.SetHandle((int)Handle); p.Broadcast(); }
void ConditionClose(void* Handle) { RCondVar p; p.SetHandle((int)Handle); p.Close(); }