-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interrupting tasks in different threads assert bug #443
Comments
A bit quick there.. This makes it work better. Case (if I remember correctly) is when the main 'task' has not been created by vibe.. 'thread' is null
|
Is this an ok fix? In that case, I can submit a pull-request for it.. |
I've used With some effort it would be possible to make interruption from foreign threads and from outside of the event loop work, too. |
I have an event-loop run in a thread created outside of vibed. In this thread, I run the event loop, but also do other things. If I try to interrupt a task from the thread (outside any of the tasks spawned by the thread), I get this assert.. How can I fix this? It is not an invalid case, since I only interrupt tasks that are spawned by the same thread. |
So do you use a manual |
…s of the same thread. See #443. This makes it possible to use those functions outside of a task before the event loop has started, or when the event loop is manually run using processEvents().
Yes, I use 'processEvents'. Thanks. I will try it out when the next release comes. |
You could also try it out right now by running |
Assert in core.d should also check for 'null'
The text was updated successfully, but these errors were encountered: