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