mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-03 11:00:14 -05:00
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:
parent
66345f5a8c
commit
48ad51d040
@ -84,10 +84,12 @@ void RsThread::start()
|
|||||||
|
|
||||||
int err ;
|
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)))
|
if( 0 == (err=pthread_create(&tid, 0, &rsthread_init, data)))
|
||||||
{
|
{
|
||||||
mTid = tid;
|
mTid = tid;
|
||||||
mIsRunning = true ;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user