DWORD WINAPI func(LPVOID arg)
{
while(bQuit != true)
{
// do stuff
}
}
WHen I use CreateThread the create a thread that runs that function, my CPU usage goes thru the roof to 100 percent. Is there another way to do this without sitting in a busy while loop? Thanks in advance.
My Geekcode: "GCS d s: a14 C++$ P+(++) L+ E-- W+++$ K- w++(+++) O---- M-- Y-- PGP- t X
R- tv+ b++ DI+(+++) D- G e* h!"
Decode my geekcode!
Geekcode.com
Visit our web site: Asylum Entertainment