Further speed up your MEX files by making it easier to add in support for multi-threading and eliminate multi-threading overhead.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
oreoman (2026). Simpler MEX Multi-Threading w/ a Persistent Thread Pool (https://github.com/michael-nix/MATLAB-MEX-Threadpool), GitHub. Retrieved .
Acknowledgements
Inspired by: max_in_place - example of multi-threaded MEX function, Multi-Threading w/ MEX: Adding Two Vectors
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and MATLAB Answers
General Information
- Version 1.1.2 (12.9 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with R2018a and later releases
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.1.2 | Simple bug fix in madd_threadpool.c |
||
| 1.1.1 | Connected to GitHub... |
||
| 1.1.0 | Added a few helper functions to make my life easier, and make it possible to use the same thread pool among multiple MEX files. Not properly documented 'cause I'm lazy. |
||
| 1.0.0 |
