@@ -86,19 +86,21 @@ class Sca : public ScBase
8686 // / Executes an SCA command
8787 // / \param commandData SCA command, data pair
8888 // / \param lock Boolean enabling implicit locking
89+ // / \param lockTimeout timeout (in ms) for aquiring the lock
8990 // / \throws o2::lla::LlaException on lock fail,
9091 // / o2::alf::ScaException on SCA error
91- CommandData executeCommand (CommandData commandData, bool lock = false )
92+ CommandData executeCommand (CommandData commandData, bool lock = false , int lockTimeout = 0 )
9293 {
93- return executeCommand (commandData.command , commandData.data , lock);
94+ return executeCommand (commandData.command , commandData.data , lock, lockTimeout );
9495 }
9596 // / Executes an SCA command
9697 // / \param command SCA command
9798 // / \param data SCA data
9899 // / \param lock Boolean enabling implicit locking
100+ // / \param lockTimeout timeout (in ms) for aquiring the lock
99101 // / \throws o2::lla::LlaException on lock fail
100102 // / o2::alf::ScaException on SCA error
101- CommandData executeCommand (uint32_t command, uint32_t data, bool lock = false );
103+ CommandData executeCommand (uint32_t command, uint32_t data, bool lock = false , int lockTimeout = 0 );
102104
103105 // / Executes an SCA sequence
104106 // / \param operations A vector of Operation and Data pairs
@@ -108,15 +110,15 @@ class Sca : public ScBase
108110 // / WaitTime for Waits
109111 // / std::string for Errors
110112 // / \throws o2::lla::LlaException on lock fail
111- std::vector<std::pair<Operation, Data>> executeSequence (const std::vector<std::pair<Operation, Data>>& operations, bool lock = false );
113+ std::vector<std::pair<Operation, Data>> executeSequence (const std::vector<std::pair<Operation, Data>>& operations, bool lock = false , int lockTimeout = 0 );
112114
113115 // / Executes an SCA sequence for the ALF Server
114116 // / \param operations A vector of Data and Operation pairs
115117 // / \param lock Boolean enabling implicit locking
116118 // / \return A string of newline separated results;
117119 // / \throws o2::lla::LlaException on lock fail
118120 // / o2::alf::ScaException on invalid operation or error
119- std::string writeSequence (const std::vector<std::pair<Operation, Data>>& operations, bool lock = false );
121+ std::string writeSequence (const std::vector<std::pair<Operation, Data>>& operations, bool lock = false , int lockTimeout = 0 );
120122
121123 static std::string ScaOperationToString (Operation op);
122124 static Sca::Operation StringToScaOperation (std::string op);
0 commit comments