| 784 | } |
| 785 | |
| 786 | void Add(BfpFileWatcher* fileWatcher) |
| 787 | { |
| 788 | //OutputDebugStrF("IOCP.Add %@\n", fileWatcher); |
| 789 | |
| 790 | EnsureInitialized(); |
| 791 | auto handle = ::CreateIoCompletionPort(fileWatcher->mHandle, mIOCompletionPort, (ULONG_PTR)fileWatcher, 0); |
| 792 | BF_ASSERT(handle == mIOCompletionPort); |
| 793 | } |
| 794 | |
| 795 | void Kill(BfpFileWatcher* fileWatcher) |
| 796 | { |
no outgoing calls
no test coverage detected