This commit is contained in:
Araq
2019-08-16 13:29:58 +02:00
parent c7e77edecc
commit bebda3851f
3 changed files with 15 additions and 6 deletions

View File

@@ -136,9 +136,12 @@ else:
when TArg is void:
thrd.dataFn()
else:
var x: TArg
deepCopy(x, thrd.data)
thrd.dataFn(x)
when defined(nimV2):
thrd.dataFn(thrd.data)
else:
var x: TArg
deepCopy(x, thrd.data)
thrd.dataFn(x)
finally:
afterThreadRuns()