2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Free a message port.
8 #include <exec/ports.h>
9 #include <exec/execbase.h>
10 #include <aros/libcall.h>
11 #include <proto/exec.h>
13 /*****************************************************************************
17 AROS_LH1(void, DeleteMsgPort
,
20 AROS_LHA(struct MsgPort
*, port
, A0
),
23 struct ExecBase
*, SysBase
, 112, Exec
)
26 Delete a messageport allocated with CreateMsgPort(). The signal bit
27 is freed and the memory is given back to the memory pool. Remaining
28 messages are not replied. It is safe to call this function with a
32 port - Pointer to messageport structure.
46 ******************************************************************************/
50 /* Only if there is something to free */
54 FreeSignal(port
->mp_SigBit
);
57 FreeMem(port
,sizeof(struct MsgPort
));