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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -