Fix a few deprecation warnings
This commit is contained in:
parent
4246f660ea
commit
c50b5b62ef
32 changed files with 53 additions and 65 deletions
|
|
@ -11,7 +11,7 @@ type
|
|||
of mLine: data: string
|
||||
|
||||
var
|
||||
producer, consumer: TThread[void]
|
||||
producer, consumer: Thread[void]
|
||||
chan: TChannel[TMsg]
|
||||
printedLines = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ discard """
|
|||
import os
|
||||
|
||||
var
|
||||
thr: array [0..5, TThread[tuple[a, b: int]]]
|
||||
thr: array [0..5, Thread[tuple[a, b: int]]]
|
||||
|
||||
proc doNothing() = discard
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ discard """
|
|||
import os
|
||||
|
||||
var
|
||||
thr: array [0..5, TThread[tuple[a, b: int]]]
|
||||
thr: array [0..5, Thread[tuple[a, b: int]]]
|
||||
|
||||
proc doNothing() = discard
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ discard """
|
|||
|
||||
var
|
||||
global: string = "test string"
|
||||
t: TThread[void]
|
||||
t: Thread[void]
|
||||
|
||||
proc horrible() {.thread.} =
|
||||
global = "string in thread local heap!"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ proc doAction(outC: PComm) {.thread.} =
|
|||
send(outC[], i)
|
||||
|
||||
var
|
||||
thr: TThread[PComm]
|
||||
thr: Thread[PComm]
|
||||
chan: TChannel[int]
|
||||
|
||||
open(chan)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue