attempt to make asynchttpserver better; fixes #15925; [backport:1.0]

This commit is contained in:
Araq 2020-11-13 13:03:14 +01:00
commit 8778d4a6f3
7 changed files with 123 additions and 50 deletions

View file

@ -55,7 +55,7 @@ when hasThreadSupport:
maxFD: int
numFD: int
fds: ptr SharedArray[SelectorKey[T]]
count: int
count*: int
Selector*[T] = ptr SelectorImpl[T]
else:
type
@ -64,7 +64,7 @@ else:
maxFD: int
numFD: int
fds: seq[SelectorKey[T]]
count: int
count*: int
Selector*[T] = ref SelectorImpl[T]
type
SelectEventImpl = object