2024-01-21 08:22:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "threadpool.h"
|
|
|
|
|
2024-01-22 14:02:59 +01:00
|
|
|
um-rewrite-final
|
|
|
|
#include "timer.h"
|
|
|
|
=======
|
|
|
|
master
|
2024-01-21 08:22:06 +01:00
|
|
|
#include "../kernel_interface/kernel_interface.h"
|
|
|
|
|
|
|
|
namespace dispatcher {
|
|
|
|
|
|
|
|
static const int DISPATCH_LOOP_SLEEP_TIME = 10;
|
|
|
|
static const int KERNEL_DISPATCH_FUNCTION_COUNT = 11;
|
|
|
|
static const int DISPATCHER_THREAD_COUNT = 4;
|
|
|
|
|
|
|
|
class dispatcher {
|
2024-01-22 14:02:59 +01:00
|
|
|
um-rewrite-final
|
|
|
|
timer timers;
|
|
|
|
=======
|
|
|
|
master
|
2024-01-21 08:22:06 +01:00
|
|
|
thread_pool thread_pool;
|
|
|
|
kernel_interface::kernel_interface k_interface;
|
|
|
|
|
|
|
|
void issue_kernel_job();
|
2024-01-22 14:02:59 +01:00
|
|
|
um-rewrite-final
|
|
|
|
void timer_test_callback();
|
|
|
|
void init_timer_callbacks();
|
|
|
|
void run_timer_thread();
|
|
|
|
void run_io_port_thread();
|
|
|
|
=======
|
|
|
|
master
|
2024-01-21 08:22:06 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
dispatcher(LPCWSTR driver_name, client::message_queue &queue);
|
|
|
|
void run();
|
|
|
|
};
|
|
|
|
} // namespace dispatcher
|