Export a function to register external threads.
authorAlexander Gavrilov <Alexander.Gavrilov@at-software.com>
Thu, 20 Nov 2008 10:01:19 +0000 (13:01 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 28 Jul 2011 07:57:48 +0000 (11:57 +0400)
commit6f333bf7934906900368ea9718132b3731721e45
treee59d91ebafca2213416a832631fcec0efd40fb25
parentee085e67e7702ae67883e7c2bb6f7c228f79d513
Export a function to register external threads.

Original GC only supports running on the main thread, and
threads that it created itself. When using it for embedded
virtual machines, e.g. Neko, the host application may want
to be able to use it on threads that it created through
system frameworks.

This commit adds a function that can be used to do it.
However, it is a low-level interface that requires knowledge
about the libgc internals to use properly.
pthread_support.c