summary refs log tree commit diff stats
path: root/lib/system/threads.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/threads.nim')
-rw-r--r--lib/system/threads.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim
index def35c238..7fbfe54ab 100644
--- a/lib/system/threads.nim
+++ b/lib/system/threads.nim
@@ -90,6 +90,8 @@ type
       dataFn: proc (m: TArg) {.nimcall, gcsafe.}
       data: TArg
 
+proc `=copy`*[TArg](x: var Thread[TArg], y: Thread[TArg]) {.error.}
+
 var
   threadDestructionHandlers {.rtlThreadVar.}: seq[proc () {.closure, gcsafe, raises: [].}]