diff options
| author | Stefan Boberg <[email protected]> | 2023-12-19 10:55:11 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-19 10:55:11 +0100 |
| commit | 7451d3ab8aa7be6405b6bbbe5e17dcb3ea29e766 (patch) | |
| tree | 67b166d09365c45c43d7d446a6f0816c1428274b /src/zencore/workthreadpool.cpp | |
| parent | various TSAN/ASAN/LeakAnalyzer fixes (#622) (diff) | |
| download | zen-7451d3ab8aa7be6405b6bbbe5e17dcb3ea29e766.tar.xz zen-7451d3ab8aa7be6405b6bbbe5e17dcb3ea29e766.zip | |
ensure we can build without trace (#619)
`xmake config -zentrace=n` would previously not build cleanly
Diffstat (limited to 'src/zencore/workthreadpool.cpp')
| -rw-r--r-- | src/zencore/workthreadpool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zencore/workthreadpool.cpp b/src/zencore/workthreadpool.cpp index 6ff6463dd..16b2310ff 100644 --- a/src/zencore/workthreadpool.cpp +++ b/src/zencore/workthreadpool.cpp @@ -132,7 +132,9 @@ struct WorkerThreadPool::Impl Impl(int InThreadCount, std::string_view WorkerThreadBaseName) : m_WorkerThreadBaseName(WorkerThreadBaseName) { +# if ZEN_WITH_TRACE trace::ThreadGroupBegin(m_WorkerThreadBaseName.c_str()); +# endif zen::Latch WorkerLatch{InThreadCount}; @@ -143,7 +145,9 @@ struct WorkerThreadPool::Impl WorkerLatch.Wait(); +# if ZEN_WITH_TRACE trace::ThreadGroupEnd(); +# endif } ~Impl() |