Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- thr: array[0..4, system.TThread[void]]
- proc threadFunc(void) {.thread.} =
- echo("hi")
- for i in 0..high(thr):
- createThread(thr[i], threadFunc, void)
- joinThreads(thr)
- threads.nim(8, 23) Error: instantiate 'threadFunc' explicitely
Advertisement
Add Comment
Please, Sign In to add comment