From 9d155a9f9464cfb85bf864c8e0075743dc15a52a Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 13 Nov 2009 17:55:35 -0800 Subject: BigClean: Action should now be threadsafe. --- include/Action.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include') 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 #include #include +#include +#include //! 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 -- cgit v1.2.3