Nim Threading question

2023-04-22 Thread noah
this executes for me * you dont need to import system/threads (or anything from system * and you need to compile with `--threads:on` import std/locks var thr: array[2, Thread[string]] L: Lock proc sendString(msg: string): void = L.acquire()

Nim Threading question

2023-04-22 Thread WipWapWoop
Hi, So basically in simple, the code below is the code with an error: import std/locks import system/threads var thr: array[2, Thread[string]] L: Lock proc SendString(msg: string): void = L.acquire() echo msg L.release() in