diff --git a/src/Sync/ExtSyncMutex.php b/src/Sync/ExtSyncMutex.php new file mode 100644 index 0000000..3cd986c --- /dev/null +++ b/src/Sync/ExtSyncMutex.php @@ -0,0 +1,39 @@ +mutex = new \SyncMutex(); + } + + /** + * {@inheritdoc} + */ + public function lock() + { + $this->mutex->lock(-1); + } + + /** + * {@inheritdoc} + */ + public function unlock() + { + $this->mutex->unlock(false); + } +}