Package entropy :: Module locks :: Class UpdatesNotificationResourceLock

Class UpdatesNotificationResourceLock

source code


This lock can be used to temporarily stop updates availability notifications (like those sent by RigoDaemon) from taking place. For instance, it is possible to acquire this lock in shared mode in order to stop RigoDaemon from signaling the availability of updates during an upgrade performed by Equo. RigoDaemon acquires the lock in exclusive NB mode for a short period of time in order to ensure that it can signal updates availability.

If you want to run an install queue, acquire this in shared mode, if you want to notify available updates, try to acquire this in exclusive mode.

Instance Methods
 
__init__(self, output=None)
Object constructor.
source code
 
path(self)
Return the path to the lock file.
source code

Inherited from ResourceLock: acquire_exclusive, acquire_shared, exclusive, is_already_acquired, release, shared, try_acquire_exclusive, try_acquire_shared, wait_exclusive, wait_shared

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, output=None)
(Constructor)

source code 

Object constructor.

Parameters:
  • output (entropy.output.TextInterface or None) - a TextInterface interface
Overrides: object.__init__

path(self)

source code 

Return the path to the lock file.

Overrides: ResourceLock.path