Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hxcomm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Apps
BrainScaleS
hxcomm
Commits
25bf97e5
Commit
25bf97e5
authored
10 months ago
by
Philipp Spilger
Browse files
Options
Downloads
Patches
Plain Diff
fix: SimConnection to use correct parameterization on copy/move in worker thread
Change-Id: I6135fcf43830b771d9ac3dd343993970d47a6cf0
parent
4d1dac9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hxcomm/common/simconnection_impl.tcc
+6
-3
6 additions, 3 deletions
include/hxcomm/common/simconnection_impl.tcc
with
6 additions
and
3 deletions
include/hxcomm/common/simconnection_impl.tcc
+
6
−
3
View file @
25bf97e5
...
...
@@ -45,7 +45,8 @@ SimConnection<ConnectionParameter>::SimConnection(bool enable_terminate_on_destr
m_decoder(m_receive_queue, m_listener_halt),
m_run_receive(true),
m_worker_receive([&]() {
thread_local flange::SimulatorClient local_sim;
thread_local flange::SimulatorClient local_sim(
std::get<0>(m_registry->m_parameters), std::get<1>(m_registry->m_parameters));
work_receive(local_sim);
}),
m_runnable_mutex(),
...
...
@@ -95,7 +96,8 @@ SimConnection<ConnectionParameter>::SimConnection(SimConnection&& other) :
new (&m_decoder) decltype(m_decoder)(other.m_decoder, m_receive_queue, m_listener_halt);
//
m_worker_receive = std::thread([&]() {
thread_local flange::SimulatorClient local_sim;
thread_local flange::SimulatorClient local_sim(
std::get<0>(m_registry->m_parameters), std::get<1>(m_registry->m_parameters));
work_receive(local_sim);
});
...
...
@@ -138,7 +140,8 @@ SimConnection<ConnectionParameter>& SimConnection<ConnectionParameter>::operator
new (&m_encoder) encoder_type(other.m_encoder, m_send_queue);
// create and start thread
m_worker_receive = std::thread([&]() {
thread_local flange::SimulatorClient local_sim;
thread_local flange::SimulatorClient local_sim(
std::get<0>(m_registry->m_parameters), std::get<1>(m_registry->m_parameters));
work_receive(local_sim);
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment