Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Classes | Namespaces
file_lock_factory.php File Reference

Flock based file locking factory. More...

Classes

class  core\lock\file_lock_factory
 

Namespaces

 core\lock
  
 

Detailed Description

Flock based file locking factory.

The file lock factory returns file locks locked with the flock function. Works OK, except on some NFS, exotic shared storage and exotic server OSes (like windows). On windows, a second attempt to get a lock will block indefinitely instead of timing out.