Friday, January 21, 2005

Signalling event

Main thread

//Create an eventin the non signalled mode and wait for it
HANDLE g_Event =CreateEvent(0,0,0,0);

//this method will wait till the event is Signalled
WaitForSingleObject(g_Event,INFINITE) ;


In another thread

//Set the event to signelled state, so that waitforsingle object can return

Install/Upgrade NVIDI Driver in Ubuntu for CUDA SDK

Most linux distribution comes with the Nouveau display driver configured. If you need to use NVIDIA...