Skip to content

Allow injection of custom atexit procedure#275

Merged
igaztanaga merged 1 commit intoboostorg:developfrom
MiguelCompany:atexit_injection
Nov 11, 2025
Merged

Allow injection of custom atexit procedure#275
igaztanaga merged 1 commit intoboostorg:developfrom
MiguelCompany:atexit_injection

Conversation

@MiguelCompany
Copy link
Contributor

I came to a situation where a singleton in my application (let's call it MySingleton) with references to some boost interprocess objects was destroyed after the boost interprocess singleton.

The destructor of MySingleton was then calling the boost interprocess API to free the relevant resources, and random crashes occurred.

I've been using the following changes for a while now and decided to contribute them back.

@igaztanaga igaztanaga merged commit 3ca315b into boostorg:develop Nov 11, 2025
43 of 44 checks passed
@igaztanaga
Copy link
Member

Thanks for the patch!

igaztanaga added a commit that referenced this pull request Nov 11, 2025
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.

2 participants

Comments