Skip to content
Snippets Groups Projects
  • Marian Buschsieweke's avatar
    4c3e92f1
    core: Made thread state an enum · 4c3e92f1
    Marian Buschsieweke authored
    - 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
    4c3e92f1
    History
    core: Made thread state an enum
    Marian Buschsieweke authored
    - 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