Fix a few deprecation warnings

This commit is contained in:
def 2015-07-11 14:39:19 +02:00
commit c50b5b62ef
32 changed files with 53 additions and 65 deletions

View file

@ -11,7 +11,7 @@ type
of mLine: data: string
var
producer, consumer: TThread[void]
producer, consumer: Thread[void]
chan: TChannel[TMsg]
printedLines = 0

View file

@ -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

View file

@ -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

View file

@ -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!"

View file

@ -15,7 +15,7 @@ proc doAction(outC: PComm) {.thread.} =
send(outC[], i)
var
thr: TThread[PComm]
thr: Thread[PComm]
chan: TChannel[int]
open(chan)