mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
85c6fd6665
* csq stuff * oh yea * bugfix * epicc * some formating n dat * bug fix * class changes * e * fix up some of the io stuff * fix io PLEASEEE * fff
23 lines
No EOL
503 B
C++
23 lines
No EOL
503 B
C++
#pragma once
|
|
|
|
#include "threadpool.h"
|
|
|
|
#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 {
|
|
thread_pool thread_pool;
|
|
kernel_interface::kernel_interface k_interface;
|
|
|
|
void issue_kernel_job();
|
|
|
|
public:
|
|
dispatcher(LPCWSTR driver_name, client::message_queue &queue);
|
|
void run();
|
|
};
|
|
} // namespace dispatcher
|