diff options
Diffstat (limited to 'lib/thread/types+osx.myr')
-rw-r--r-- | lib/thread/types+osx.myr | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/thread/types+osx.myr b/lib/thread/types+osx.myr new file mode 100644 index 0000000..bba067d --- /dev/null +++ b/lib/thread/types+osx.myr @@ -0,0 +1,20 @@ +use sys + +pkg thread = + type tid = sys.pid /* 64 bits */ + type tlskey(@a) = uint64 + + /* + XXX: Be sure to update tls-impl+osx.s and rt/start-osx.s if any changes + are made to the size of this struct and/or the offsets of any of its + members. + */ + pkglocal type tlshdr = struct + tid : tid + len : tlskey(void) + base : byte# + stksz : sys.size + self : tlshdr# + slots : void#[...] + ;; +;; |