Ticket #4544 (closed: fixed)
ThreadSafeLogStreamBuf is not thread safe when using ThreadPool
Reported by: | Janik Zikovsky | Owned by: | Janik Zikovsky |
---|---|---|---|
Priority: | major | Milestone: | Release 2.1 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Roman Tolchenov |
Description
Refs #4527 which triggered it.
ThreadSafeLogStreamBuf uses the PARALLEL_THREAD_NUMBER variable to determine the current thread. This only works with OpenMP, not with custom ThreadPool pthreads. So a fix is needed to make this truly thread safe.
Change History
comment:3 Changed 9 years ago by Janik Zikovsky
- Status changed from accepted to verify
- Resolution set to fixed
comment:4 Changed 8 years ago by Roman Tolchenov
- Status changed from verify to verifying
- Tester set to Roman Tolchenov
Note: See
TracTickets for help on using
tickets.
Refs #4544 truly thread-safe ThreadSafeLogStreamBuf