home *** CD-ROM | disk | FTP | other *** search
- /*
- $Id$
- $Log$
- Desc:
- Lang: english
- */
- #include "exec_intern.h"
- #include <exec/execbase.h>
- #include <exec/tasks.h>
- #include <aros/libcall.h>
-
- /*****************************************************************************
-
- NAME */
- #include <clib/exec_protos.h>
-
- __AROS_LH1(void, FreeSignal,
-
- /* SYNOPSIS */
- __AROS_LA(long, signalNum, D0),
-
- /* LOCATION */
- struct ExecBase *, SysBase, 56, Exec)
-
- /* FUNCTION
- Free a signal allocated with AllocSignal().
-
- INPUTS
- signalNum - Number of the signal to free or -1 to do nothing.
-
- RESULT
-
- NOTES
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- AllocSignal(), Signal(), Wait()
-
- INTERNALS
-
- HISTORY
- 29-10-95 digulla automatically created from
- exec_lib.fd and clib/exec_protos.h
- 17-12-95 digulla Incorporated code by Matthias Fleischner
-
- *****************************************************************************/
- {
- __AROS_FUNC_INIT
-
- if (signalNum!=-1)
- {
- /* Nobody guarantees that the compiler will make it atomic. */
- Forbid();
-
- /* Clear the bit */
- SysBase->ThisTask->tc_SigAlloc &= ~(1 << signalNum);
-
- Permit();
- }
-
- __AROS_FUNC_EXIT
- } /* FreeSignal */
-