-
Boost thread
sup it's me again :rolleyes:.
So boost lib start to piss me off :grr:.
I'm trying to make a new thread who'll run my function.
boost::thread workerThread(&CClientSession::SendNpcCreate, this, pPacket, app); <-- create new thread
workerThread.join(); <---- launch thread.
works fine, exept when i'm trying to move talk or do any ingame action ... my game still runing, npc move etc but my character is freezing, this thread is locking my function while it is not finished...
the problem is......
i've 30000 calcule to do....
you can understand it's taking some time to do...
So there is any way to start the thread calcule inside a "backround" thread who is not going to lock the function who call it ?
-
Re: Boost thread
Can't you use start() the thread in stead of join() it?
-
Re: Boost thread
just tryed and it's doing the same.:glare:
-
Re: Boost thread