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

Fix unittest in core.thread #1016

Merged
merged 1 commit into from
Nov 11, 2014
Merged

Conversation

rainers
Copy link
Member

@rainers rainers commented Nov 10, 2014

This unittest crashed/asserted for me this morning: it tries to detach a thread that might not have been initialized properly yet. In my case, the thread was not yet added to the thread list (this is done in the new thread itself), but remove is called by thread_detachInstance.

This could also be considered a bug in the synchronization on the thread list, but it is dubious to detach a thread that isn't fully initialized anyway. You could have created a OS thread in that case to start with.

@MartinNowak
Copy link
Member

Auto-merge toggled on

MartinNowak added a commit that referenced this pull request Nov 11, 2014
@MartinNowak MartinNowak merged commit 374bd4f into dlang:master Nov 11, 2014
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.

2 participants