multithreading - how to make thread in c++ -


i need simple program using sleep() , (_begin thread()) make thread on program

void tdrow(){     sleep(50);     move_bare_without_ball(a,b,windowsize);     _beginthread(tdrow(),0,0); } 

_beginthread visual c++ crt function. don't recommend using or process.h purpose. please use std::thread (or if compiler older, boost::thread).

if using _beginthread, you'd give tdrow, not tdrow().


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -