-
- Downloads
core: Made thread state an enum
- Introduced enum type `thread_state_t` to replace preprocessor macros - Moved thread states to `sched.h` for two reasons: a) Because of the interdependencies of `sched.h` and `thread.h` keeping it in `thread.h` would result in ugly code. b) Theses thread states are defined from the schedulers point of view, so it actually makes senses to have it defined there
Showing
- core/include/sched.h 30 additions, 1 deletioncore/include/sched.h
- core/include/thread.h 1 addition, 35 deletionscore/include/thread.h
- core/sched.c 1 addition, 1 deletioncore/sched.c
- core/thread.c 3 additions, 3 deletionscore/thread.c
- core/thread_flags.c 4 additions, 1 deletioncore/thread_flags.c
- sys/cpp11-compat/thread.cpp 1 addition, 1 deletionsys/cpp11-compat/thread.cpp
- sys/ps/ps.c 1 addition, 1 deletionsys/ps/ps.c
Loading
Please register or sign in to comment