preparations for 0.8.12
This commit is contained in:
parent
2565ff8dde
commit
5b96eaa953
81 changed files with 2355 additions and 826 deletions
14
tests/threads/tthreadheapviolation1.nim
Executable file
14
tests/threads/tthreadheapviolation1.nim
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
var
|
||||
global: string = "test string"
|
||||
t: TThread[string]
|
||||
|
||||
proc horrible() {.thread.} =
|
||||
global = "string in thread local heap!"
|
||||
var x = global
|
||||
var mydata = (x, "my string too")
|
||||
echo global
|
||||
|
||||
createThread(t, horrible)
|
||||
joinThread(t)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue