Compare commits
3 Commits
a806e41af0
...
f918966727
Author | SHA1 | Date |
---|---|---|
|
f918966727 | |
|
26ff82cf54 | |
|
6e9dc0838c |
|
@ -1,6 +1,7 @@
|
||||||
builddbg/
|
builddbg/
|
||||||
test-bin/
|
test-bin/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
.ccls-cache/
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
|
||||||
sysroot/bin
|
sysroot/bin
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.2)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
# Set because our cross compiler can't do dynamic linking?
|
# Set because our cross compiler can't do dynamic linking?
|
||||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
|
||||||
|
|
|
@ -120,9 +120,11 @@ void Thread::Cleanup() {
|
||||||
// 2. Unblock waiting threads.
|
// 2. Unblock waiting threads.
|
||||||
while (blocked_threads_.size() != 0) {
|
while (blocked_threads_.size() != 0) {
|
||||||
auto thread = blocked_threads_.PopFront();
|
auto thread = blocked_threads_.PopFront();
|
||||||
|
if (!thread->IsDying()) {
|
||||||
thread->SetState(Thread::RUNNABLE);
|
thread->SetState(Thread::RUNNABLE);
|
||||||
gScheduler->Enqueue(thread);
|
gScheduler->Enqueue(thread);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 3. Release Kernel Stack
|
// 3. Release Kernel Stack
|
||||||
KernelVmm::FreeKernelStack(rsp0_start_);
|
KernelVmm::FreeKernelStack(rsp0_start_);
|
||||||
|
|
Loading…
Reference in New Issue