| M E M _ S I G N A L S A F E ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_signalsafe() - Wraps 'Signal()' making it safe to
call on random addresses.
SYNOPSIS
res = mem_signalsafe(tc, sig);
LONG mem_signalsafe(struct Task *, ULONG);
FUNCTION
This function makes sure that the address corresponds
a task (as found on the list) and if so signals it.
INPUTS
tc - Task address.
sig - Signal mask. If this is 0 then no Signal() will
be called. You can use 0 to see if 'tc' is just
there.
RETURNS
Returns 1 on success (task is there and/or has been
signalled) or 0 on failure.
BASES
[SysBase]
NOTES
This routine does not reference global 'SysBase' thus
it should be safe to use it anywhere in your process.
Of course this routine is hell slow compared to 'exec'
alone 'Signal()' so do not use it when you do not have
to.
SEE ALSO
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |