From c61ab7c4232eb80b7cc3c2f37ba2715e16b4ee73 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 27 Mar 2005 10:29:50 +0000 Subject: Made the Error object thread safe. --- src/error.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/error.h') 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 using namespace std; +#include +#include + /** * 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; }; -- cgit v1.2.3