summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-13 17:55:35 -0800
committerPixel <pixel@nobis-crew.org>2009-11-13 17:55:35 -0800
commit9d155a9f9464cfb85bf864c8e0075743dc15a52a (patch)
tree0186433ea772b8b255d0e22c83e001f4c2bbcafb /include
parent8c415c3658e7f344dc803431726b50942e432702 (diff)
BigClean: Action should now be threadsafe.
Diffstat (limited to 'include')
-rw-r--r--include/Action.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/Action.h b/include/Action.h
index c458403..581b093 100644
--- a/include/Action.h
+++ b/include/Action.h
@@ -25,6 +25,8 @@
#include <Variables.h>
#include <Exceptions.h>
#include <HtmlSkinner.h>
+#include <Atomic.h>
+#include <LockSmith.>
//! This is the basic HTTP action.
/*!
@@ -61,13 +63,13 @@ class Action : public Base {
//! This returns the recorded URL for that action.
String GetURL(void);
//! Mark this action to be erased as soon as the Do method ends.
- void CleanUp(void);
+ void CleanUp(void) { hastoclean = true; }
//! Skinner accessor.
- HtmlSkinner * GetSkinner();
+ HtmlSkinner * GetSkinner() { return skin; }
protected:
//! Mark this action as beeing accessed.
- void Accessed(void);
+ void Accessed(void) { accessed = true; }
private:
static Action * start;
@@ -75,6 +77,7 @@ class Action : public Base {
String URL;
bool hastoclean, accessed;
HtmlSkinner * skin;
+ iLock lock;
};
#endif