fwGeneral  8.4.1
fwDPELock.ctl File Reference

The library to handle DPE locks.This library contains a set of functions that handle DPE Locks: lock, unlock, check the state of locking, as well as a lock-monitor that guards that the locked datapoints will not remain locked unnecessarily. More...

Functions

string _fwDPELock_getLockConfig (string dpeWithConfig)
 
bool fwDPELock_isLocked (string dpeWithConfig)
 
bool fwDPELock_getLocked (string dpeWithConfig, dyn_string &lockDetails, dyn_string &exceptionInfo)
 
bool fwDPELock_tryLock (string dpeWithConfig, dyn_string &exceptionInfo, int lockTimeout=1, int lockLifetime=5)
 
void fwDPELock_unlock (string dpeWithConfig, dyn_string &exceptionInfo, bool force=false)
 
void _fwDPELock_dpLockManager (string dummyParam)
 
private void _fwDPELock_sudoUnlock (string lockConfig, dyn_string &exceptionInfo)
 

Detailed Description

The library to handle DPE locks.

This library contains a set of functions that handle DPE Locks: lock, unlock, check the state of locking, as well as a lock-monitor that guards that the locked datapoints will not remain locked unnecessarily.

Author
Piotr Golonka, CERN EN/ICE-SCD
Constraints
  • It is not (yet) guaranteed that this version works across distributed systems.
  • It is not (yet) guaranteed that this version works in redundant systems.

Function Documentation

void _fwDPELock_dpLockManager ( string  dummyParam)
private void _fwDPELock_sudoUnlock ( string  lockConfig,
dyn_string &  exceptionInfo 
)

Internal

Execute DPE unlocking as root, with fwAccessControl_sudo