2 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
8 #include "exec_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
15 AROS_LH1(void, FreeTrap
,
18 AROS_LHA(long, trapNum
, D0
),
21 struct ExecBase
*, SysBase
, 58, Exec
)
38 Very similar to FreeSignal()
40 *****************************************************************************/
46 /* No more atomic problem - i beleive THIS is atomic. - sonic */
47 struct Task
*me
= GET_THIS_TASK
;
50 if (me
->tc_Flags
& TF_ETASK
) {
51 struct ETask
*et
= me
->tc_UnionETask
.tc_ETask
;
53 et
->et_TrapAlloc
&= ~(1<<trapNum
);
55 me
->tc_TrapAlloc
&= ~(1<<trapNum
);