diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/doublelock/rtl_doublelocking.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx index 74feeb1156b6..cdb0b965e357 100644 --- a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx +++ b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx @@ -208,6 +208,9 @@ namespace rtl_DoubleLocking pThread->terminate(); p2Thread->terminate(); + pThread->join(); + p2Thread->join(); + sal_Int32 nValueOK = 0; nValueOK = pThread->getOK(); @@ -232,9 +235,6 @@ namespace rtl_DoubleLocking printf("Fails in Thread #2 is %d\n", nValueFails2); #endif - pThread->join(); - p2Thread->join(); - delete pThread; delete p2Thread; |