parent
1fae66e4df
commit
ab05e141c0
2 changed files with 3 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ proc close*[T](s: Selector[T]) =
|
||||||
when hasThreadSupport:
|
when hasThreadSupport:
|
||||||
deallocSharedArray(s.fds)
|
deallocSharedArray(s.fds)
|
||||||
deallocShared(cast[pointer](s))
|
deallocShared(cast[pointer](s))
|
||||||
|
deinitLock(s.lock)
|
||||||
|
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
proc newSelectEvent*(): SelectEvent =
|
proc newSelectEvent*(): SelectEvent =
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@
|
||||||
## for i in 0..high(thr):
|
## for i in 0..high(thr):
|
||||||
## createThread(thr[i], threadFunc, (i*10, i*10+5))
|
## createThread(thr[i], threadFunc, (i*10, i*10+5))
|
||||||
## joinThreads(thr)
|
## joinThreads(thr)
|
||||||
|
##
|
||||||
|
## deinitLock(L)
|
||||||
|
|
||||||
when not declared(ThisIsSystem):
|
when not declared(ThisIsSystem):
|
||||||
{.error: "You must not import this module explicitly".}
|
{.error: "You must not import this module explicitly".}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue