From: | A-Scotland,ex1 |
Date: | 31 Aug 2000 at 12:44:50 |
Subject: | Re: Freeing list with Classact |
[snip]
> Exec.doc says:
>
> MEMF_PUBLIC: Memory that must not be mapped, swapped,
> or otherwise made non-addressable. ALL
> MEMORY THAT IS REFERENCED VIA INTERRUPTS
> AND/OR BY OTHER TASKS MUST BE EITHER PUBLIC
> OR LOCKED INTO MEMORY! This includes both
> code and data.
>
> And MEMF_ANY means *any* memory, not restricted like
> MEMF_PUBLIC. So the
> flags are mutually exclusive
[snip]
>From what I can remember:
The easy way to tell if any of these flags are mutually INclusive
is to do a bit by bit comparison of the values in the include
files. If MEMF_ANY contains *all* the bits in MEMF_PUBLIC then
there is no point in putting MEMF_ANY|MEMF_PUBLIC in your
code...
Not that it really matters anyway. If what you coded clears the
memory that you want it to then fine. Just as long as it doesn't
stomp all over someone elses memory.