Ejemplo n.º 1
0
        public static ArchThread Create(ArchAddressSpace parent)
        {
            var utcb = parent.AllocUTCB();
            if (utcb == Pointer.Zero)
                return null;

            ThreadInfo info;

            if (NativeMethods.l4api_create_thread(utcb, parent._value, out info) != 0)
                return null;

            return new ArchThread(info);
        }
Ejemplo n.º 2
0
        public static ArchThread Create(ArchAddressSpace parent)
        {
            var utcb = parent.AllocUTCB();

            if (utcb == Pointer.Zero)
            {
                return(null);
            }

            ThreadInfo info;

            if (NativeMethods.l4api_create_thread(utcb, parent._value, out info) != 0)
            {
                return(null);
            }

            return(new ArchThread(info));
        }