summaryrefslogtreecommitdiff
path: root/unix/mpthreadport.c
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2016-10-07unix: Use mp_raise_OSError helper function.Damien George
2016-07-11unix/mpthreadport: Adjust minimum thread stack, and stack limit check.Damien George
The minimum thread stack size is set by pthreads (16k bytes) so we must use that value for our minimum. The stack limit check is also adjusted to work correctly for 32-bit builds.
2016-06-28py/modthread: Allow to properly set the stack limit of a thread.Damien George
We rely on the port setting and adjusting the stack size so there is enough room to recover from hitting the stack limit.
2016-06-28unix/mpthreadport: Suppress compiler warning about unused arguments.Damien George
2016-06-28unix/mpthreadport: Use SA_SIGINFO for GC signal handler.Damien George
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-28unix: Implement garbage collection with threading.Damien George
This patch allows any given thread to do a proper garbage collection and scan all the pointers of all active threads.
2016-06-28py/modthread: Implement lock object, for creating a mutex.Damien George
2016-06-28py/modthread: Add stack_size() function.Damien George
2016-06-28unix: Add basic thread support using pthreads.Damien George
Has the ability to create new threads.