External Interfaces Reference Previous page   Next Page
mexLock

Prevent MEX-file from being cleared from memory

Fortran Syntax

Arguments

none
  

Description

By default, MEX-files are unlocked, meaning that a user can clear them at any time. Call mexLock to prohibit a MEX-file from being cleared.

To unlock a MEX-file, call mexUnlock.

mexLock increments a lock count. If you call mexLock n times, you must call mexUnlock n times to unlock your MEX-file.

See Also

mexIsLocked, mexMakeArrayPersistent, mexMakeMemoryPersistent,
mexUnlock


Previous page  mexIsNaN (Obsolete) mexMakeArrayPersistent Next page

© 1994-2005 The MathWorks, Inc.