#ifndef ENGINELOCKS_H_ #define ENGINELOCKS_H_ // System #include /** \defgroup Engine Engine * Lock order constants. *

* When locking more than * one object from the following list, they have to be taken * in this order, for example: First lock the Engine, then an ArchiveChannel, * then the ProcessVariableContext. *

* Classes in Tools like the ThrottledMsgLogger use locks with an order * of 100 or higher. *

* Beyond the reach of this code are locks internal to the CA client library. * Possible lock chains: *

* The basic PV/CA conflicts need to be handled by PV lock releases * whenever calling CA. *

*/ /** \ingroup Engine * The archive engine. */ class EngineLocks { public: /** Lock order constant for the Engine. */ static const size_t Engine = 10; /** Lock order constant for the GroupInfo. */ static const size_t GroupInfo = 20; /** Lock order constant for the ArchiveChannel. */ static const size_t ArchiveChannel = 30; /** Lock order constant for the SampleMechanism. */ static const size_t SampleMechanism = 40; /** Lock order constant for the RepeatFilter. */ static const size_t RepeatFilter = 50; /** Lock order constant for the DisableFilter. */ static const size_t DisableFilter = 51; /** Lock order constant for the ProcessVariable. */ static const size_t ProcessVariable = 60; /** Lock order constant for the ProcessVariableContext. */ static const size_t ProcessVariableContext = 70; /** Lock order constant for the client list of the HTTPServer. */ static const size_t HTTPServer = 80; }; #endif