Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
tlibs
Commits
26f35014
Verified
Commit
26f35014
authored
Sep 11, 2020
by
Tobias WEBER
Browse files
cosmetic change
parent
33992f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
helper/thread.h
View file @
26f35014
...
...
@@ -43,7 +43,7 @@ class ThreadPool
#ifdef USE_OWN_THREADPOOL
std
::
list
<
std
::
unique_ptr
<
std
::
thread
>>
m_lstThreads
;
unsigned
int
m_tp
;
// dummy variable to avoid some ifdefs
// signal to start jobs
std
::
promise
<
void
>
m_signalStartIn
;
std
::
future
<
void
>
m_signalStartOut
=
std
::
move
(
m_signalStartIn
.
get_future
());
...
...
@@ -175,7 +175,7 @@ class ThreadPool
{
// ensure that this is only called per-thread, not per-task
std
::
lock_guard
<
std
::
mutex
>
lockStart
(
m_mtxStart
);
thread_local
bool
bThreadAlreadySeen
{
0
};
if
(
m_pThStartFunc
&&
!
bThreadAlreadySeen
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment