Describe why win_iocp_operation inherits from OVERLAPPED.

This commit is contained in:
chris_kohlhoff 2005-12-09 05:15:06 +00:00
parent f2f91144bc
commit e17b093fd7

View File

@ -34,6 +34,10 @@ class win_iocp_demuxer_service;
// Base class for all IOCP operations. A function pointer is used instead of // Base class for all IOCP operations. A function pointer is used instead of
// virtual functions to avoid the associated overhead. // virtual functions to avoid the associated overhead.
//
// This class inherits from OVERLAPPED so that we can downcast to get back to
// the win_iocp_operation pointer from the LPOVERLAPPED out parameter of
// GetQueuedCompletionStatus.
struct win_iocp_operation struct win_iocp_operation
: public OVERLAPPED : public OVERLAPPED
{ {