You are here

public static function UltimateCronLock::shutdown in Ultimate Cron 7.2

Shutdown handler for releasing locks.

File

./ultimate_cron.lock.inc, line 22
A database-mediated implementation of a locking mechanism.

Class

UltimateCronLock
Class for handling lock functions.

Code

public static function shutdown() {
  if (self::$locks) {
    foreach (array_keys(self::$locks) as $lock_id) {
      self::unlock($lock_id);
    }
  }
}