summary refs log tree commit diff stats
path: root/lib/system/systhread.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-05-17 22:56:34 +0200
committerAraq <rumpf_a@web.de>2011-05-17 22:56:34 +0200
commitb0b2c233aedb7a475c0d918d7747c3ad942bb75f (patch)
tree2d6cb09385909818b18b4569ca0cc2f1014cb94a /lib/system/systhread.nim
parent9207492bb997b414f45f24fed3ec5e942286d259 (diff)
downloadNim-b0b2c233aedb7a475c0d918d7747c3ad942bb75f.tar.gz
still playing with threads
Diffstat (limited to 'lib/system/systhread.nim')
-rwxr-xr-xlib/system/systhread.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/systhread.nim b/lib/system/systhread.nim
index 2b5057ff0..c497cc961 100755
--- a/lib/system/systhread.nim
+++ b/lib/system/systhread.nim
@@ -77,7 +77,8 @@ when defined(Windows):
 
 else:
   type
-    TSysLock {.importc: "pthread_mutex_t", header: "<sys/types.h>".} = int
+    TSysLock {.importc: "pthread_mutex_t", pure, final,
+               header: "<sys/types.h>".} = object
 
   proc InitSysLock(L: var TSysLock, attr: pointer = nil) {.
     importc: "pthread_mutex_init", header: "<pthread.h>".}