External Interfaces/API Reference    
mexUnlock

Unlock this MEX-file so that it can be cleared from memory

C Syntax

Description

By default, MEX-files are unlocked, meaning that a user can clear them at any time. Calling mexLock locks a MEX-file so that it cannot be cleared. Calling mexUnlock removes the lock so that a MEX-file can be cleared.

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

Example

See mexlock.c in the mex subdirectory of the examples directory.

See Also

mexIsLocked, mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent


 mexSetTrapFlag mexWarnMsgTxt