Skip to content
Snippets Groups Projects
Commit be29e371 authored by System User's avatar System User
Browse files

[ICATHALES-6] Nettoyage du code

parent 741b2a84
Branches
Tags
1 merge request!1[ICATHALES-6] - Device do not start when driver not availible
...@@ -26,9 +26,9 @@ ADLinkContinuousAO::~ADLinkContinuousAO (void) ...@@ -26,9 +26,9 @@ ADLinkContinuousAO::~ADLinkContinuousAO (void)
void ADLinkContinuousAO::handle_error (const asl::DAQException& de) void ADLinkContinuousAO::handle_error (const asl::DAQException& de)
{ {
cout<<"error occured during acquisition"<<endl; cout<<"error occured during acquisition"<<endl;
this->lock_data(); lock_data();
err_ctr++; err_ctr++;
this->unlock_data(); unlock_data();
_ASL_TO_TANGO_EXCEPTION(de, df); _ASL_TO_TANGO_EXCEPTION(de, df);
ERROR_STREAM<<"error occured during acquisition"<<endl; ERROR_STREAM<<"error occured during acquisition"<<endl;
ERROR_STREAM<<df<<endl; ERROR_STREAM<<df<<endl;
......
...@@ -23,14 +23,14 @@ public: ...@@ -23,14 +23,14 @@ public:
*/ */
inline void lock_data(void) inline void lock_data(void)
{ {
this->data_lock_.acquire(); data_lock_.acquire();
}; };
/** /**
* Release the mutex * Release the mutex
*/ */
inline void unlock_data(void) inline void unlock_data(void)
{ {
this->data_lock_.release(); data_lock_.release();
}; };
unsigned long err_ctr; unsigned long err_ctr;
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment