diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-09-22 19:07:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 13:07:31 +0200 |
commit | ab05e141c0ee298d42344e8a15101097e73ff2f9 (patch) | |
tree | aeb1ae244f65a59bed8e149a5488f16901ce20f1 | |
parent | 1fae66e4df8cc43b4ec8ab97fff96282ef234f2e (diff) | |
download | Nim-ab05e141c0ee298d42344e8a15101097e73ff2f9.tar.gz |
deinitLock (#15383)
* deinitLock * minor
-rw-r--r-- | lib/pure/ioselects/ioselectors_select.nim | 1 | ||||
-rw-r--r-- | lib/system/threads.nim | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/pure/ioselects/ioselectors_select.nim b/lib/pure/ioselects/ioselectors_select.nim index 2f22f1b30..eed64a34d 100644 --- a/lib/pure/ioselects/ioselectors_select.nim +++ b/lib/pure/ioselects/ioselectors_select.nim @@ -110,6 +110,7 @@ proc close*[T](s: Selector[T]) = when hasThreadSupport: deallocSharedArray(s.fds) deallocShared(cast[pointer](s)) + deinitLock(s.lock) when defined(windows): proc newSelectEvent*(): SelectEvent = diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 6b858c4bb..bf93b5e01 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -41,6 +41,8 @@ ## for i in 0..high(thr): ## createThread(thr[i], threadFunc, (i*10, i*10+5)) ## joinThreads(thr) +## +## deinitLock(L) when not declared(ThisIsSystem): {.error: "You must not import this module explicitly".} |