void Thread( void* pParams )
{
}
void Timer::StartTimer()
{
Timer *t1 = new Timer (1, 4500);
Timer *t2 = new Timer (2, 6000);
Timer *t3 = new Timer (4, 3000);
}
Timer::Timer()
{}
Timer::Timer (int zoneIn, int timeIn):zone(zoneIn),time(timeIn)
{
_beginthread( Thread, 0, NULL );
cout<<"start "<<endl;
//Sleep(time);
cout<<"end "<<endl;
}
Obviously i am missing code but all the thread stuff is there
the sleep command works, it pauses for 3 seconds the printing end. but its not multithreading.
thanks


Sign In
Create Account


Back to top









