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

@ -21,7 +21,7 @@ when hasThreadSupport:
pollcnt: int
fds: ptr SharedArray[SelectorKey[T]]
pollfds: ptr SharedArray[TPollFd]
count: int
count*: int
lock: Lock
Selector*[T] = ptr SelectorImpl[T]
else:
@ -31,7 +31,7 @@ else:
pollcnt: int
fds: seq[SelectorKey[T]]
pollfds: seq[TPollFd]
count: int
count*: int
Selector*[T] = ref SelectorImpl[T]
type