Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Interrupting tasks in different threads assert bug #443
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
added a commit
May 7, 2014
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.