1 /* Implement tasking-related runtime actions for CHILL.
2 Copyright (C) 1992,1993 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
28 * evaddr pointer to Eventlocation
29 * filename source file name where function gets called
30 * lineno linenumber in source file
39 * implement the CHILL CONTINUE action.
43 __continue (evaddr, filename, lineno)
48 Event_Queue *ev = *evaddr;
55 /* search for 1st one is not already continued */
56 while (ev && ev->is_continued)
59 /* all have been continued in that queue, do nothing */
65 Event_Queue *tmp = (Event_Queue *)wrk->listhead;
67 while (tmp->forward != wrk)
69 tmp->forward = wrk->forward;
73 /* so far so good, continue this one */
75 ev->who_continued = THIS;
77 /* tell the runtime system to activate the process */
78 __continue_that (ev->this, ev->priority, filename, lineno);
81 /* force function print_event to be linked */
82 extern void __print_event ();
83 static EntryPoint pev = __print_event;