Added 'Resident' field to ensure that the handler is included in the
[AROS.git] / rom / exec / releasesemaphorelist.c
blobb7d7fabca4c145770b9bd86f7ce3cd1aea1f795d
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Release all semaphores in the list.
6 Lang: english
7 */
8 #include "exec_intern.h"
9 #include "semaphores.h"
10 #include <exec/semaphores.h>
11 #include <proto/exec.h>
13 /*****************************************************************************
15 NAME */
17 AROS_LH1(void, ReleaseSemaphoreList,
19 /* SYNOPSIS */
20 AROS_LHA(struct List *, sigSem, A0),
22 /* LOCATION */
23 struct ExecBase *, SysBase, 98, Exec)
25 /* FUNCTION
26 This function releases all semaphores in the list at once.
28 INPUTS
29 sigSem - pointer to list full of semaphores
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 struct SignalSemaphore *ss;
50 * We own all the semaphores, so just go over the list and release
51 * them one at a time.
54 ForeachNode(sigSem, ss)
56 ReleaseSemaphore(ss);
59 AROS_LIBFUNC_EXIT
60 } /* ReleaseSemaphoreList */