Damien George
f443504f86
unix/mpthreadport: Suppress compiler warning about unused arguments.
2016-06-28 11:28:50 +01:00
Damien George
c2508ac8bd
unix/mpthreadport: Use SA_SIGINFO for GC signal handler.
...
SA_SIGINFO allows the signal handler to access more information about
the signal, especially useful in a threaded environment. The extra
information is not currently used but it may prove useful in the future.
2016-06-28 11:28:49 +01:00
Damien George
dbd54e0b5b
unix: Implement garbage collection with threading.
...
This patch allows any given thread to do a proper garbage collection and
scan all the pointers of all active threads.
2016-06-28 11:28:49 +01:00
Damien George
801d1b3803
py/modthread: Implement lock object, for creating a mutex.
2016-06-28 11:28:49 +01:00
Damien George
707f98f207
py/modthread: Add stack_size() function.
2016-06-28 11:28:48 +01:00
Damien George
a791be936a
unix: Add basic thread support using pthreads.
...
Has the ability to create new threads.
2016-06-28 11:28:48 +01:00