| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2016-06-28 | py/mpthread: Include mpstate.h when defining GIL macros. | Damien George | |
| 2016-06-28 | py/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-28 | py/mpthread.h: Move GIL macros outside MICROPY_PY_THREAD block. | Damien George | |
| The GIL macros are needed even if threading is not enabled. | |||
| 2016-06-28 | py: Implement a simple global interpreter lock. | Damien George | |
| This makes the VM/runtime thread safe, at the cost of not being able to run code in parallel. | |||
| 2016-06-28 | py/modthread: Call mp_thread_start/mp_thread_finish around threads. | Damien George | |
| So the underlying thread implementation can do any necessary bookkeeping. | |||
| 2016-06-28 | py/gc: Make memory manager and garbage collector thread safe. | Damien George | |
| By using a single, global mutex, all memory-related functions (alloc, free, realloc, collect, etc) are made thread safe. This means that only one thread can be in such a function at any one time. | |||
| 2016-06-28 | py/modthread: Implement lock object, for creating a mutex. | Damien George | |
| 2016-06-28 | py/modthread: Add stack_size() function. | Damien George | |
| 2016-06-28 | py: Add basic _thread module, with ability to start a new thread. | Damien George | |
