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
SharedMutex allow us to access shared resource in both ways exclusive and shared.
Multiple threads can access resource for read access at a same time
Only one threads can access resource for write access at a same time
classSharedMutex{status: SM_UNLOCKED|SM_READ_LOCK|SM_WRITE_LOCK,asyncenterRead(callback),// if no callback passed Promise will be returnedasyncenterWrite(callback),leave(),on('status',(status=>{})),// or you can subscribe on status change}
The text was updated successfully, but these errors were encountered:
SharedMutex
allow us to access shared resource in both ways exclusive and shared.The text was updated successfully, but these errors were encountered: