Skip to content

DcpManagerSlave: join threads before delete in destructor#78

Open
oliverpapst1 wants to merge 1 commit into
modelica:masterfrom
oliverpapst1:fix/missing-join-before-delete
Open

DcpManagerSlave: join threads before delete in destructor#78
oliverpapst1 wants to merge 1 commit into
modelica:masterfrom
oliverpapst1:fix/missing-join-before-delete

Conversation

@oliverpapst1

Copy link
Copy Markdown
Contributor
  • ~DcpManagerSlave() deleted thread pointers without joining them first
  • If a thread is still joinable at destruction time, std::thread::~thread() calls std::terminate(), causing the process to hang instead of exiting cleanly
  • Added joinable() + join() before each delete across all managed threads

Closes issue #77.

@oliverpapst1 oliverpapst1 force-pushed the fix/missing-join-before-delete branch from 35cc66f to 3861bd2 Compare June 2, 2026 10:24
@oliverpapst1 oliverpapst1 force-pushed the fix/missing-join-before-delete branch from 3861bd2 to 5111a6d Compare June 3, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant