Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bileto/criticalsection

Repository files navigation

Critical Sections for PHP Build Status

Description

Lightweight class supporting critical section locking in PHP.

It requires PHP >= 7.1 and no other dependency.

Example

$pdo = new PDO('...');
$driver = new Bileto\CriticalSection\Driver\PdoPgsqlDriver($pdo);
$criticalSection = new Bileto\CriticalSection\CriticalSection($driver);
$criticalSection->enter('Section Label');
// Perform set of steps of critical tasks
$criticalSection->leave('Section Label');

About

Lightweight class supporting critical section locking

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /