morris/sync
最新稳定版本:v1.0.0
Composer 安装命令:
composer require morris/sync
包简介
Synchronized function calls for PHP
README 文档
README
<?php // Call a function in a mutually exclusive way using a lockfile. // A process will only block other processes and never block itself, // so you can safely nest synchronized operations. Sync::call( function() { // do critical stuff like IO here } ); // Set default lockfile Sync::$lock = 'my/default/.lock'; // Use different lockfile by passing it as the second argument Sync::call( $func, 'my/other/.lock' );
Requirements
- PHP 5.3+
Installation
The composer package name is morris/sync. You can also download or
fork the repository.
License
Sync is licensed under the MIT License. See LICENSE.md for details.
统计信息
- 总下载量: 2.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-17