Download the PHP package php-win-ext/sync without Composer
On this page you can find all versions of the php package php-win-ext/sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-win-ext/sync
More information about php-win-ext/sync
Files in php-win-ext/sync
Package sync
Short Description A PHP extension for Synchronization Objects (sync)
License MIT
Informations about the package sync
CubicleSoft PHP Extension: Synchronization Objects (sync)
The 'sync' extension introduces synchronization objects into PHP. Named and unnamed Mutex, Semaphore, Event, Reader-Writer, and named Shared Memory objects provide OS-level synchronization mechanisms on both *NIX (POSIX shared memory and pthread shared memory synchronization required) and Windows platforms. The extension comes with a test suite that integrates cleanly into 'make test'.
The 'sync' extension is a direct port of and compatible with the cross platform 'sync' library: https://github.com/cubiclesoft/cross-platform-cpp
This extension uses the liberal MIT open source license. And, of course, it sits on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively.
| Version | Status |
|---|---|
| master | unmaintened :x: |
| v1.x | maintened :white_check_mark: |
Maintained PHP Versions compatibility:
| PHP Version | Status |
|---|---|
| 5.x | no :x: |
| 7.x | no :x: |
| 8.0 | yes :white_check_mark: |
| 8.1 | yes :white_check_mark: |
| 8.2 | yes :white_check_mark: |
| 8.3 | yes :white_check_mark: |
| 8.4 | yes :white_check_mark: |
| 8.5 | yes :white_check_mark: |
Installation system support:
| Platform | Status |
|---|---|
| PECL | no :x: |
| PIE | yes :white_check_mark: |
To install the extension, use PIE (PHP Installer Extension) with a command like:
Details
An exception may be thrown from the constructors if the target object can't be created for some reason.
All synchronization objects are attempted to be unlocked cleanly within PHP itself. The exception is if an object's $autounlock option is initialized to false. If PHP terminates a script and doesn't unlock the object, it can leave the object in an unpredictable state.
NOTE: When using "named" objects, the initialization must be identical for a given name and have a specific purpose. Reusing named objects for other purposes is not a good idea and will probably result in breaking both applications. However, different object types can share the same name (e.g. a Mutex and an Event object can have the same name).
`
Usage Examples
Example Mutex usage:
Example Semaphore usage:
Example Event usage:
Example Reader-Writer usage:
Example Shared Memory usage: