diff options
Diffstat (limited to 'devel/p5-Mutex/pkg-descr')
-rw-r--r-- | devel/p5-Mutex/pkg-descr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/p5-Mutex/pkg-descr b/devel/p5-Mutex/pkg-descr new file mode 100644 index 000000000000..8d05c2da268f --- /dev/null +++ b/devel/p5-Mutex/pkg-descr @@ -0,0 +1,14 @@ +This module, a standalone version of MCE::Mutex, implements locking methods +that can be used to coordinate access to shared data from multiple workers +spawned as processes or threads. + +The inspiration for this module came from reading Mutex for Ruby. + +$m1 = Mutex->new( ); +$m1->impl(); # Channel +$m2 = Mutex->new( path => /tmp/my.lock ); +$m2->impl(); # Flock +$m3 = Mutex->new( impl => "Channel" ); +$m3->impl(); # Channel +$m4 = Mutex->new( impl => "Flock" ); +$m4->impl(); # Flock |