summary refs log tree commit diff stats
path: root/lib/system/systhread.nim
blob: 611191e70d29100f3c4cdcfc2b0ce78dbba4ce46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
#
#            Nimrod's Runtime Library
#        (c) Copyright 2010 Andreas Rumpf
#
#    See the file "copying.txt", included in this
#    distribution, for details about the copyright.
#

const
  isMultiThreaded* = true
  maxThreads = 256
  
type
  TThread* {.final, pure.} = object
    next: ptr TThread
  TThreadFunc* = proc (closure: pointer) {.cdecl.}
  
proc createThread*(t: var TThread, fn: TThreadFunc) = 
  nil
  
proc destroyThread*(t: var TThread) =
  nil