| MATLAB® | ![]() |
#include "mex.h" void mexUnlock(void);
mexUnlock()
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 the MEX-file can be cleared.
mexLock increments a lock count. If you called mexLock n times, you must call mexUnlock n times to unlock your MEX-file.
See mexlock.c in the mex subdirectory of the examples directory.
mexIsLocked, mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent
![]() | mexSetTrapFlag (C and Fortran) | mexWarnMsgIdAndTxt (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |