summaryrefslogtreecommitdiff
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/error.h b/src/error.h
index 8b26471..a7e6b29 100644
--- a/src/error.h
+++ b/src/error.h
@@ -30,6 +30,9 @@
#include <string>
using namespace std;
+#include <pthread.h>
+#include <semaphore.h>
+
/**
* This struct contains one error, and a pointer to the previous one.
*/
@@ -54,8 +57,9 @@ public:
void removeAllErrors();
private:
- // Used to save the state of the network and camera connections.
- bool error;
+ pthread_mutex_t mutex;
+
+ // A pointer to the last error.
_err_entry *lastError;
};