-
- Downloads
stmhal: Implement a proper thread scheduler.
This patch changes the threading implementation from simple round-robin with busy waits on mutexs, to proper scheduling whereby threads that are waiting on a mutex are only scheduled when the mutex becomes available.
Showing
- stmhal/main.c 4 additions, 0 deletionsstmhal/main.c
- stmhal/modmachine.c 5 additions, 0 deletionsstmhal/modmachine.c
- stmhal/mpconfigport.h 14 additions, 0 deletionsstmhal/mpconfigport.h
- stmhal/mpthreadport.c 3 additions, 32 deletionsstmhal/mpthreadport.c
- stmhal/mpthreadport.h 13 additions, 1 deletionstmhal/mpthreadport.h
- stmhal/pybthread.c 157 additions, 22 deletionsstmhal/pybthread.c
- stmhal/pybthread.h 21 additions, 5 deletionsstmhal/pybthread.h
- stmhal/stm32_it.c 9 additions, 3 deletionsstmhal/stm32_it.c
- stmhal/systick.c 10 additions, 0 deletionsstmhal/systick.c
Loading
Please register or sign in to comment