diff options
Diffstat (limited to 'lib/system/threads.nim')
-rwxr-xr-x | lib/system/threads.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim index ce07f0c3b..7c26cf8ee 100755 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -360,7 +360,8 @@ proc threadId*[TArg](t: var TThread[TArg]): TThreadId[TArg] {.inline.} = result = addr(t) proc myThreadId*[TArg](): TThreadId[TArg] = - ## returns the thread ID of the thread that calls this proc. + ## returns the thread ID of the thread that calls this proc. This is unsafe + ## because the type ``TArg`` is not checked for consistency! result = cast[TThreadId[TArg]](ThreadVarGetValue(globalsSlot)) when false: |