From 3d1863c1b5d2b408320e3bae5e48fa7cda1ec655 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Sun, 7 Aug 2011 18:47:01 +0200 Subject: [PATCH] Make sure we assign name before mStatus --- indra/llcommon/llthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llcommon/llthread.cpp b/indra/llcommon/llthread.cpp index c2b93ebed..f81b53ae2 100644 --- a/indra/llcommon/llthread.cpp +++ b/indra/llcommon/llthread.cpp @@ -102,7 +102,7 @@ void *APR_THREAD_FUNC LLThread::staticRun(apr_thread_t *apr_threadp, void *datap // Setting mStatus to STOPPED is done non-thread-safe, so it's // possible that the thread is deleted by another thread at // the moment it happens... therefore make a copy here. - volatile char const* name = threadp->mName.c_str(); + char const* volatile name = threadp->mName.c_str(); // We're done with the run function, this thread is done executing now. threadp->mStatus = STOPPED;