diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/osl/thread.hxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sal/inc/osl/thread.hxx b/sal/inc/osl/thread.hxx index 0bade3b06c86..ddb9d918e96e 100644 --- a/sal/inc/osl/thread.hxx +++ b/sal/inc/osl/thread.hxx @@ -81,14 +81,13 @@ public: sal_Bool SAL_CALL create() { assert(m_hThread == 0); // only one running thread per instance - if (m_hThread) - return sal_False; - m_hThread = osl_createSuspendedThread( threadFunc, (void*)this); - if ( m_hThread ) - osl_resumeThread(m_hThread); - - return m_hThread != 0; + if (m_hThread == 0) + { + return false; + } + osl_resumeThread(m_hThread); + return true; } sal_Bool SAL_CALL createSuspended() |