Skip to content
This repository was archived by the owner on Jun 27, 2021. It is now read-only.
This repository was archived by the owner on Jun 27, 2021. It is now read-only.

Threadsafety, or lack thereof #2

@kw

Description

@kw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions