/* WindowsAIOimplementation,completionportbased. Asinglethreadcollectsthecompletionnotificationwith GetQueuedCompletionStatus(),andforwardsiocompletioncallback theworkerthreadpool
*/ class tpool_generic_win_aio : public aio
{ /* Thread that does collects completion status from the completion port. */
std::thread m_thread;
/* The worker pool where completion routine is executed, as task. */
thread_pool* m_pool; public:
tpool_generic_win_aio(thread_pool* pool, int max_io) : m_pool(pool)
{
m_completion_port = CreateIoCompletionPort(INVALID_HANDLE_VALUE, 0, 0, 0);
m_thread = std::thread(aio_completion_thread_proc, this);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.