The solution implements copying a folder with multiple files using asynchronous I/O in Windows. It is created mainly as a demonstration of WinAPI IOCP programming. unsigned __stdcall WorkThreadFunction(void* param)
{
...
io::OVERLAPPEDPLUS* ovlPlus = CONTAINING_RECORD(ovl, io::OVERLAPPEDPLUS, m_ovl);
...
ovlPlus->m_poolClient->OnOperationCanceled(ovl);
...
ovlPlus->m_poolClient->OnOperationCompleted(ovl, transferred);
...
}
评论