Re: AllocVecTags() questions
Posted: Fri Mar 11, 2016 1:14 am
I meant MEMF_SHARED when I said MEMF_PUBLIC. I'm aware of the 3 types of memory.salass00 wrote:There are only three values that are allowed for use with AllocVecTags() AVT_Type tag: MEMF_PRIVATE, MEMF_SHARED and MEMF_EXECUTABLE.
Out of these MEMF_SHARED and MEMF_EXECUTABLE default to being locked in memory (not swappable) while MEMF_PRIVATE is not locked (swappable) by default. This default can be overridden by using the AVT_Lock tag.
MEMF_PUBLIC is a legacy memory flag which should not be used with the new AllocVecTags() API.