Compare commits

..

No commits in common. "f918966727b096fc764c637c688d0715a22b960d" and "a806e41af0360680f9a0dace6cd61f56a23553e3" have entirely different histories.

3 changed files with 3 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,7 +1,6 @@
builddbg/ builddbg/
test-bin/ test-bin/
__pycache__/ __pycache__/
.ccls-cache/
compile_commands.json compile_commands.json
sysroot/bin sysroot/bin

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.2)
# 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")

View File

@ -120,10 +120,8 @@ 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