示例#1
0
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;
}
示例#2
0
void ConditionSignal(void* Handle)
{
	RCondVar p;
	p.SetHandle((int)Handle);
	p.Signal();
}
示例#3
0
void ConditionBroadcast(void* Handle)
{
	RCondVar p;
	p.SetHandle((int)Handle);
	p.Broadcast();	
}
示例#4
0
void ConditionClose(void* Handle)
{
	RCondVar p;
	p.SetHandle((int)Handle);
	p.Close();	
}