2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <exec/execbase.h>
9 #include <exec/tasks.h>
10 #include <aros/libcall.h>
11 #include <proto/exec.h>
13 /*****************************************************************************
17 AROS_LH1(void, FreeSignal
,
20 AROS_LHA(LONG
, signalNum
, D0
),
23 struct ExecBase
*, SysBase
, 56, Exec
)
26 Free a signal allocated with AllocSignal().
29 signalNum - Number of the signal to free or -1 to do nothing.
40 AllocSignal(), Signal(), Wait()
44 ******************************************************************************/
50 #warning "Forbid/Permit or atomic operation should not be needed here"
51 #warning "Because AllocSignal/FreeSignal access tc_SigAlloc only ever from same task?"
53 /* Nobody guarantees that the compiler will make it atomic. */
57 SysBase
->ThisTask
->tc_SigAlloc
&=~(1<<signalNum
);