summaryrefslogtreecommitdiff
path: root/lib/thread/types+osx.myr
blob: bba067dfba1420b9b3ba2b49ef6b961125a08a61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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#[...]
	;;
;;