Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITASimulationScheduler
Commits
7a97e661
Commit
7a97e661
authored
Jul 31, 2020
by
Pascal Palenda
Browse files
Use the vista thread name
parent
c9519063
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/ITA/simulation_scheduler/scheduler.h
View file @
7a97e661
...
...
@@ -268,13 +268,6 @@ namespace ITA
/// \todo This probably does not have to be atomic as the reset happens in the same thread.
///
ITAAtomicBool
m_bResetIndicated
=
false
;
#ifdef WITH_PROFILER
///
/// \brief Name of the thread loop of the CScheduler.
///
std
::
string
m_sThreadName
;
#endif
};
}
// namespace simulation_scheduler
}
// namespace ITA
...
...
src/ITA/simulation_scheduler/room_acoustics/master_simulation_controller.cpp
View file @
7a97e661
...
...
@@ -191,7 +191,8 @@ namespace ITA
void
CMasterSimulationController
::
PreLoop
(
)
{
PROFILER_NAME_THREAD
(
"Master Simulation Controller"
);
SetThreadName
(
"Master Simulation Controller"
);
PROFILER_NAME_THREAD
(
GetThreadName
()
);
}
void
CMasterSimulationController
::
filterReplace
(
)
...
...
src/ITA/simulation_scheduler/room_acoustics/raven/worker_thread.cpp
View file @
7a97e661
...
...
@@ -222,6 +222,8 @@ namespace ITA
break
;
default:
;
}
SetThreadName
(
sThreadName
);
PROFILER_NAME_THREAD
(
sThreadName
);
#endif
}
...
...
src/ITA/simulation_scheduler/scheduler.cpp
View file @
7a97e661
...
...
@@ -104,7 +104,7 @@ namespace ITA
void
CScheduler
::
postUpdate
(
std
::
unique_ptr
<
IUpdateMessage
>
pUpdateMessage
)
{
//PROFILER_FUNCTION ( );
PROFILER_VALUE
(
"Enqueued Update to "
+
m_s
ThreadName
,
pUpdateMessage
->
getID
(
)
);
PROFILER_VALUE
(
"Enqueued Update to "
+
Get
ThreadName
(
)
,
pUpdateMessage
->
getID
(
)
);
m_qUpdateQueue
.
push
(
std
::
move
(
pUpdateMessage
)
);
m_evTriggerLoop
.
SignalEvent
(
);
}
...
...
@@ -321,22 +321,23 @@ namespace ITA
switch
(
roomAcousticWorker
->
getFieldOfDuty
(
)
)
{
case
room_acoustics
::
FieldOfDuty
::
directSound
:
m_s
ThreadName
=
"Direct Sound Scheduler"
;
Set
ThreadName
(
"Direct Sound Scheduler"
)
;
break
;
case
room_acoustics
::
FieldOfDuty
::
earlyReflections
:
m_s
ThreadName
=
"Early Reflections Scheduler"
;
Set
ThreadName
(
"Early Reflections Scheduler"
)
;
break
;
case
room_acoustics
::
FieldOfDuty
::
diffuseDecay
:
m_s
ThreadName
=
"Diffuse Decay Scheduler"
;
Set
ThreadName
(
"Diffuse Decay Scheduler"
)
;
break
;
default:
;
}
PROFILER_NAME_THREAD
(
m_s
ThreadName
);
PROFILER_NAME_THREAD
(
Get
ThreadName
(
)
);
return
;
}
}
PROFILER_NAME_THREAD
(
"Scheduler"
);
SetThreadName
(
"Scheduler"
);
PROFILER_NAME_THREAD
(
GetThreadName
(
)
);
#endif
}
...
...
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