Consistently use Channel instead of TChannel

This commit is contained in:
def 2016-02-25 04:04:45 +01:00
commit 7177e0058b
7 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ discard """
from math import random
from os import sleep
type PComm = ptr TChannel[int]
type PComm = ptr Channel[int]
proc doAction(outC: PComm) {.thread.} =
for i in 0.. <5:
@ -16,7 +16,7 @@ proc doAction(outC: PComm) {.thread.} =
var
thr: Thread[PComm]
chan: TChannel[int]
chan: Channel[int]
open(chan)
createThread[PComm](thr, doAction, addr(chan))