| 801 | } |
| 802 | |
| 803 | void Remove(BfpOverlapped* bfpOverlapped) |
| 804 | { |
| 805 | /*if (mShuttingDown) |
| 806 | { |
| 807 | Kill(fileWatcher); |
| 808 | return; |
| 809 | } */ |
| 810 | |
| 811 | //QueueRemove(fileWatcher); |
| 812 | |
| 813 | //OutputDebugStrF("IOCP.Remove %@\n", fileWatcher); |
| 814 | |
| 815 | AutoCrit autoCrit(mCritSect); |
| 816 | auto handle = bfpOverlapped->mHandle; |
| 817 | bfpOverlapped->mHandle = NULL; |
| 818 | BF_FULL_MEMORY_FENCE(); |
| 819 | ::CloseHandle(handle); |
| 820 | ::PostQueuedCompletionStatus(mIOCompletionPort, 0, (ULONG_PTR)bfpOverlapped | 1, NULL); |
| 821 | } |
| 822 | |
| 823 | void WorkerProc() |
| 824 | { |
no outgoing calls
no test coverage detected