/
threading
threading
Seems we got our first user who tried to do something with multithreading:
http://forum.dlang.org/thread/vqqihinjxqzcrlibjfbw@forum.dlang.org
It didn't work out too good. ketmar pointed out you need to register non-D threads with thread_attachThis and thread_detachThis, and in fact you do.
So, are there any hooks in python that can be used to call these when python creates a thread?
Supposedly you also need to register non-python threads: https://docs.python.org/2/c-api/init.html#non-python-created-threads. TODO: what happens if you don't do this?