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
Post a Comment