
Public Types | |
| typedef size_t | ThreadIdentifier |
Public Member Functions | |
| virtual void | Dispatch (IHandler &handler, IBuffer *pBuffer, const DWORD numberOfBytes) const =0 |
| Dispatch a buffer and a handler to the pool. | |
| virtual void | AssociateDevice (HANDLE hDevice, IHandler &handler) const =0 |
| Associate a HANDLE with a handler. I/O completion packets that the HANDLE generates will be handled by the handler. | |
| virtual bool | ThreadIsInPool () const =0 |
| Returns true if the calling thread is a member of the thread I/O thread pool. The I/O pool uses a TLS slot to store a, non-zero, identifier for all the threads that make up the pool. Some I/O operations can be performed more efficiently if done on a thread that is known to be part of the I/O pool. | |
| virtual DWORD | GetPoolThreadsTlsIndex () const =0 |
| Obtain the TLS index that the I/O pool uses to store the identifier that is used to determine if a thread is in the pool. This can be used to allow a thread that wasn't created by the I/O pool itself to 'join' the group of threads that are considered to be part of the pool. Use with care... | |
| virtual ThreadIdentifier | GetPoolThreadsIdentifier () const =0 |
| Obtain the identifier that the I/O pool uses to determine if a thread is in the pool. This can be used to allow a thread that wasn't created by the I/O pool itself to 'join' the group of threads that are considered to be part of the pool. Use with care... | |
Protected Member Functions | |
| ~IIOPool () | |
| We never delete instances of this interface; you must manage the lifetime of the class that implements it. | |
| typedef size_t ThreadIdentifier |
| ~IIOPool | ( | ) | [inline, protected] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
| virtual void AssociateDevice | ( | HANDLE | hDevice, | |
| IHandler & | handler | |||
| ) | const [pure virtual] |
Associate a HANDLE with a handler. I/O completion packets that the HANDLE generates will be handled by the handler.
Implemented in CIOPool.
| virtual bool ThreadIsInPool | ( | ) | const [pure virtual] |
Returns true if the calling thread is a member of the thread I/O thread pool. The I/O pool uses a TLS slot to store a, non-zero, identifier for all the threads that make up the pool. Some I/O operations can be performed more efficiently if done on a thread that is known to be part of the I/O pool.
Implemented in CIOPool.
| virtual DWORD GetPoolThreadsTlsIndex | ( | ) | const [pure virtual] |
Obtain the TLS index that the I/O pool uses to store the identifier that is used to determine if a thread is in the pool. This can be used to allow a thread that wasn't created by the I/O pool itself to 'join' the group of threads that are considered to be part of the pool. Use with care...
Implemented in CIOPool.
| virtual ThreadIdentifier GetPoolThreadsIdentifier | ( | ) | const [pure virtual] |
Obtain the identifier that the I/O pool uses to determine if a thread is in the pool. This can be used to allow a thread that wasn't created by the I/O pool itself to 'join' the group of threads that are considered to be part of the pool. Use with care...
Implemented in CIOPool.
1.5.3