fixed start of RsThreads

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8271 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-05-18 08:51:23 +00:00
parent 66345f5a8c
commit 48ad51d040

View File

@ -84,10 +84,12 @@ void RsThread::start()
int err ;
// pthread_create is a memory barrier
// -> the new thread will see mIsRunning = true
mIsRunning = true ;
if( 0 == (err=pthread_create(&tid, 0, &rsthread_init, data)))
{
mTid = tid;
mIsRunning = true ;
}
else
{