ActionScheduler_Lock::setpublicWC 1.0

Set a lock.

To prevent race conditions, implementations should avoid setting the lock if the lock is already held.

Method of the class: ActionScheduler_Lock{}

No Hooks.

Returns

true|false.

Usage

$ActionScheduler_Lock = new ActionScheduler_Lock();
$ActionScheduler_Lock->set( $lock_type );
$lock_type(string) (required)
A string to identify different lock types.

ActionScheduler_Lock::set() code WC 10.3.5

abstract public function set( $lock_type );