bugfix: exception handling (still not correct)

This commit is contained in:
Andreas Rumpf
2010-06-04 00:45:46 +02:00
parent 909f7dbf8c
commit c441cdb64c
18 changed files with 145 additions and 39 deletions

27
lib/system/systhread.nim Executable file
View File

@@ -0,0 +1,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