banan-os/kernel/kernel/Semaphore.cpp

17 lines
237 B
C++
Raw Normal View History

2023-03-30 18:45:47 +03:00
#include <kernel/Scheduler.h>
#include <kernel/Semaphore.h>
namespace Kernel
{
void Semaphore::block()
{
Scheduler::get().block_current_thread(this);
}
void Semaphore::unblock()
{
Scheduler::get().unblock_threads(this);
}
}