This is RTThreadC.c in view mode; [Download] [Up]
/* Copyright (C) 1990, Digital Equipment Corporation */ /* All rights reserved. */ /* See the file COPYRIGHT for a full description. */ /* Last modified on Mon Dec 6 16:15:15 PST 1993 by kalsow */ /* modified on Tue Jan 19 15:20:48 PST 1993 by burrows */ /* This file implements the coroutine transfer: RTThread.Transfer */ #include <setjmp.h> RTThread__Transfer (from, to) jmp_buf *from, *to; { if (_setjmp(*from) == 0) _longjmp (*to, 1); } /* global thread ID used by 'etp' */ int ThreadF__myId = 1; /* low-level runtime lock */ int RT0u__inCritical = 0; /* global, per-thread linked list of exception handlers */ void* RTThread__handlerStack = 0;
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.