#include #include #include #include namespace hilbert::kernel::input { utility::queue *key_queue; void init_input() { key_queue = new utility::queue(); } void got_input() { if (application::threads_waiting_for_input->count > 0) { auto *t = application::threads_waiting_for_input->take(); t->state = application::thread_state::paused; application::paused_threads->insert(t); } } }