Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- thr: array[0..4, TThread[void]]
- proc threadFunc() {.thread.} =
- echo("hi ")
- for i in 0..high(thr):
- createThread(thr[i], threadFunc, void)
- joinThreads(thr)
- # minfail.nim(8, 14) Error: type mismatch: got (TThread[void], proc (){.thread.}, typedesc[empty])
- # but expected one of:
- # system.createThread(t: var TThread[TArg], tp: proc (TArg){.thread.}, param: TArg)
Advertisement
Add Comment
Please, Sign In to add comment