make the copy operation of Thread an error (#17734)

This commit is contained in:
flywind
2021-04-16 14:50:44 +08:00
committed by GitHub
parent 95e8ddabb2
commit 12783dbcf0

View File

@@ -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: [].}]