You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2021. It is now read-only.
libmex is not threadsafe. Neither is CPython, but at least we have the GIL. MATLAB does not even have a concept of user-accessible independent threads, so it should be no surprise that they have no user-accessible locking mechanism. It might be appropriate to add a "MIL" to serialize libmex functions. Note that certain libmx functions call into libmex when compiled in mex mode, but which ones exactly? That appears to be undocumented, but we can make some educated guesses, and should modify mxmodule accordingly if a MIL is implemented.
libmex is not threadsafe. Neither is CPython, but at least we have the GIL. MATLAB does not even have a concept of user-accessible independent threads, so it should be no surprise that they have no user-accessible locking mechanism. It might be appropriate to add a "MIL" to serialize libmex functions. Note that certain libmx functions call into libmex when compiled in mex mode, but which ones exactly? That appears to be undocumented, but we can make some educated guesses, and should modify mxmodule accordingly if a MIL is implemented.