文件名称:sync:PHP 的同步函数调用
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-22 23:51:00
PHP
PHP 同步 <?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 ::
【文件预览】:
sync-master
----src()
--------Sync.php(1KB)
----LICENSE.md(1KB)
----README.md(684B)
----tests()
--------SyncTest.php(1KB)
--------.gitignore(16B)
----.gitignore(21B)
----composer.json(449B)