mps.sync.TimedMATFileMutex
Represent a MAT-file persistence service mutex
Description
mps.sync.TimedMATFileMutex
is synchronization primitive used to
protect data in a MAT-file database from being simultaneously accessed by multiple
workers.
Creation
Create a mps.sync.TimedMATFileMutex
object using mps.sync.mutex
.
Properties
Object Functions
mps.sync.mutex | Create a persistence service mutex |
acquire | Acquire advisory lock on persistence service mutex |
own | Check ownership of advisory lock on a persistence service mutex object |
release | Release advisory lock on persistence service mutex |
Examples
Create a MAT-File Lock Object
mctrl = mps.cache.control('myMATFileConnection','MatlabTest','Folder','c:\tmp') start(mctrl) lk = mps.sync.mutex('myMATFileMutex','Connection','myMATFileConnection')
lk = TimedMATFileMutex with properties: Expiration: 10 ConnectionName: 'myMATFileConnection' MutexName: 'myMATFileMutex'
Version History
Introduced in R2018b
See Also
mps.sync.mutex
| mps.sync.TimedRedisMutex
| acquire
| own
| release
Topics
- Data Caching Basics (MATLAB Production Server)