Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

createLowLevelThread: add an optional DLL unload callback#2570

Merged
dlang-bot merged 3 commits intodlang:masterfrom
rainers:dll_thread
Apr 23, 2019
Merged

createLowLevelThread: add an optional DLL unload callback#2570
dlang-bot merged 3 commits intodlang:masterfrom
rainers:dll_thread

Conversation

@rainers
Copy link
Copy Markdown
Member

@rainers rainers commented Apr 21, 2019

... that is called if the DLL is supposed to be unloaded.

Finally figured a way to deal with the DLL issues in #2514. See comment in the source for explanation: https://github.com/dlang/druntime/compare/master...rainers:dll_thread?expand=1#diff-8bb12ed976acf0a5132e877ec5a01ea8R5696

@dlang-bot
Copy link
Copy Markdown
Contributor

Thanks for your pull request, @rainers!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + druntime#2570"

@rainers
Copy link
Copy Markdown
Member Author

rainers commented Apr 22, 2019

Added another special case: do not start thread during DLL_PROCESS_DETACH, it will crash later.

@thewilsonator
Copy link
Copy Markdown
Contributor

Is this good to go?

@rainers
Copy link
Copy Markdown
Member Author

rainers commented Apr 23, 2019

Is this good to go?

I think so. I have rebased #2514 to this and it also passes now.

@dlang-bot dlang-bot merged commit 72a34ee into dlang:master Apr 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants