diff options
Diffstat (limited to 'lib/system/threadimpl.nim')
-rw-r--r-- | lib/system/threadimpl.nim | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/system/threadimpl.nim b/lib/system/threadimpl.nim index 94db23336..285b8f5e7 100644 --- a/lib/system/threadimpl.nim +++ b/lib/system/threadimpl.nim @@ -20,13 +20,8 @@ when not defined(useNimRtl): threadType = ThreadType.NimThread when defined(gcDestructors): - proc allocThreadStorage(size: int): pointer = - result = c_malloc(csize_t size) - zeroMem(result, size) - proc deallocThreadStorage(p: pointer) = c_free(p) else: - template allocThreadStorage(size: untyped): untyped = allocShared0(size) template deallocThreadStorage(p: pointer) = deallocShared(p) template afterThreadRuns() = |