Apache::Session::Lock::Null - Does not actually provides mutual exclusion
| Use Case | Command | Description |
|---|---|---|
| 🔧 Instantiate locker | my $locker = Apache::Session::Lock::Null->new; | Create a new null locker object |
| 🔓 Acquire read lock | $locker->acquire_read_lock($ref); | Acquire a read lock (no-op) |
| 🔒 Acquire write lock | $locker->acquire_write_lock($ref); | Acquire a write lock (no-op) |
| 🔓 Release read lock | $locker->release_read_lock($ref); | Release a read lock (no-op) |
| 🔓 Release write lock | $locker->release_write_lock($ref); | Release a write lock (no-op) |
| 🗑️ Release all locks | $locker->release_all_locks($ref); | Release all locks (no-op) |
use Apache::Session::Lock::Null;
my $locker = Apache::Session::Lock::Null->new;
$locker->acquire_read_lock($ref);
$locker->acquire_write_lock($ref);
$locker->release_read_lock($ref);
$locker->release_write_lock($ref);
$locker->release_all_locks($ref);
💡 This module provides no actual locking — use for maximum performance when locking is unnecessary.
Apache::Session::Lock::Null fulfills the locking interface of Apache::Session, without actually doing any work. This is the module to use if you want maximum performance and don't actually need locking.
This module was written by Jeffrey William Baker <jwbaker AT acm.org>.
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 09:34 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)