summary refs log tree commit diff stats
path: root/lib/std
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-10-31 13:36:50 +0800
committerGitHub <noreply@github.com>2022-10-31 06:36:50 +0100
commite1ddd2d524e3e57df25d6498d275f019e450111e (patch)
tree9d531ffc00e74da2569977b792a8b3304f25c919 /lib/std
parentfb2ec8d192cbaa36868f28275993936868ba2d31 (diff)
downloadNim-e1ddd2d524e3e57df25d6498d275f019e450111e.tar.gz
put std/threads under the umbrella of nimPreviewSlimSystem (#20711)
* put `std/threads` under the umbrella of `nimPreviewSlimSystem`

* add changelog

* fixes tests

* fixes tests again

* fixes tests
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/threads.nim10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/std/threads.nim b/lib/std/threads.nim
index 5726a5cdc..358ff0d9e 100644
--- a/lib/std/threads.nim
+++ b/lib/std/threads.nim
@@ -95,16 +95,6 @@ when defined(zephyr):
 
 
 
-proc onThreadDestruction*(handler: proc () {.closure, gcsafe, raises: [].}) =
-  ## Registers a *thread local* handler that is called at the thread's
-  ## destruction.
-  ##
-  ## A thread is destructed when the `.thread` proc returns
-  ## normally or when it raises an exception. Note that unhandled exceptions
-  ## in a thread nevertheless cause the whole process to die.
-  nimThreadDestructionHandlers.add handler
-
-
 {.push stack_trace:off.}
 when defined(windows):
   proc threadProcWrapper[TArg](closure: pointer): int32 {.stdcall.} =