ARC: implemented a simple cycle detector

This commit is contained in:
Araq 2019-11-28 09:32:14 +01:00 • committed by Andreas Rumpf
commit 2dea920379
4 changed files with 44 additions and 6 deletions

View file

@ -341,6 +341,8 @@ when defined(windows) or defined(nimdoc):
addr lpNumberOfBytesTransferred, addr lpCompletionKey,
cast[ptr POVERLAPPED](addr customOverlapped), llTimeout).bool
result = true
when defined(gcDestructors):
GC_ref(customOverlapped)
# http://stackoverflow.com/a/12277264/492186
# TODO: http://www.serverframework.com/handling-multiple-pending-socket-read-and-write-operations.html