shithub: mc

ref: 0f3f41fae775b2647cd0cdaf0a9ef395c19b9878
dir: /lib/thread/types+fsbase.myr/

View raw version
use sys

pkg thread =
	type tid        = sys.pid /* 32 bits on all of the fsbase platforms */
	type tlskey(@a) = uint32

	/*
	XXX: Be sure to update tls-impl+fsbase.s and
	rt/start-{freebsd,linux,netbsd,openbsd}.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
		slots : void#[...]
	;;
;;