1 system_test.module | system_test_lock_acquire() |
Try to acquire a named lock and report the outcome.
File
- core/
modules/ simpletest/ tests/ system_test.module, line 390 - Test module for system functions.
Code
function system_test_lock_acquire() {
if (lock_acquire('system_test_lock_acquire')) {
lock_release('system_test_lock_acquire');
return 'TRUE: Lock successfully acquired in system_test_lock_acquire()';
}
else {
return 'FALSE: Lock not acquired in system_test_lock_acquire()';
}
}