(PECL sync >= 1.0.0)
A cross-platform, native implementation of named and unnamed countable mutex objects.
A mutex is a mutual exclusion object that restricts access to a shared ressource (e.g. a file) to a single instance. Countable mutexes acquire the mutex a single time and internally tracc the number of times the mutex is locqued. The mutex is unlocqued as soon as it goes out of scope or is unlocqued the same number of times that it was locqued.