try to make sure compiler/include/mmakefile is always refreshed correctly.
[AROS.git] / rom / exec / freesignal.c
blobb40e814434eaab67b4c4fc5a4419ca1e765faa7f
1 /*
2 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Free a signal.
6 Lang: english
7 */
8 #include <exec/execbase.h>
9 #include <exec/tasks.h>
10 #include <aros/libcall.h>
11 #include <proto/exec.h>
13 #include "exec_intern.h"
15 /*****************************************************************************
17 NAME */
19 AROS_LH1(void, FreeSignal,
21 /* SYNOPSIS */
22 AROS_LHA(LONG, signalNum, D0),
24 /* LOCATION */
25 struct ExecBase *, SysBase, 56, Exec)
27 /* FUNCTION
28 Free a signal allocated with AllocSignal().
30 INPUTS
31 signalNum - Number of the signal to free or -1 to do nothing.
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 AllocSignal(), Signal(), Wait()
44 INTERNALS
46 ******************************************************************************/
48 AROS_LIBFUNC_INIT
50 if(signalNum!=-1)
52 /* No more atomic problem - i beleive THIS is atomic. - sonic */
53 struct Task *me = GET_THIS_TASK;
55 /* Clear the bit */
56 if (me)
57 me->tc_SigAlloc &= ~(1 << signalNum);
59 AROS_LIBFUNC_EXIT
60 } /* FreeSignal() */