diff options
author | deva <deva> | 2005-03-27 10:29:50 +0000 |
---|---|---|
committer | deva <deva> | 2005-03-27 10:29:50 +0000 |
commit | c61ab7c4232eb80b7cc3c2f37ba2715e16b4ee73 (patch) | |
tree | 2d49cb3cc44f0249e0b90e547b58bb50f68c5270 /src/error.h | |
parent | 29ff2e254871ebc359af344d6ee453047e8ad2ec (diff) |
Made the Error object thread safe.
Diffstat (limited to 'src/error.h')
-rw-r--r-- | src/error.h | 8 |
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; }; |