summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system/threads.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim
index 8e94e60f5..7b035e819 100755
--- a/lib/system/threads.nim
+++ b/lib/system/threads.nim
@@ -347,7 +347,8 @@ proc destroyThread*[TParam](t: var TThread[TParam]) {.inline.} =
 proc createThread*[TParam](t: var TThread[TParam], 
                            tp: proc (param: TParam), 
                            param: TParam,
-                           stackSize = 1024*256*sizeof(int)) = 
+                           stackSize = 1024*256*sizeof(int)) {.
+                           magic: "CreateThread".} = 
   ## creates a new thread `t` and starts its execution. Entry point is the
   ## proc `tp`. `param` is passed to `tp`.
   t.data = param