sched: don't auto-start threads
While easy to use, auto-starting threads generates problems when more complicated initialization takes place. Rather than making auto-start optional (as Guy suggested), remove it completely, to keep the API simple. Use thread::start() to start a thread. Unstarted threads ignore wakeups until started.
Showing
- arch/x64/smp.cc 1 addition, 1 deletionarch/x64/smp.cc
- core/sched.cc 8 additions, 5 deletionscore/sched.cc
- drivers/virtio-vring.cc 1 addition, 0 deletionsdrivers/virtio-vring.cc
- include/sched.hh 2 additions, 0 deletionsinclude/sched.hh
- libc/pthread.cc 1 addition, 0 deletionslibc/pthread.cc
- tests/tst-malloc.hh 2 additions, 0 deletionstests/tst-malloc.hh
- tests/tst-threads.hh 2 additions, 0 deletionstests/tst-threads.hh
Loading
Please register or sign in to comment