summaryrefslogtreecommitdiff
path: root/src/resources/resource.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-22 21:33:47 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-22 21:33:47 +0000
commit8d3e43a7510dd7367c3bb62aae6841836f727493 (patch)
treec644328d6ec98f37252efa063cb720bd71eec2f5 /src/resources/resource.h
parentaed1ad6210fa1ed0a70da5d87082cedff0bd516a (diff)
downloadmana-8d3e43a7510dd7367c3bb62aae6841836f727493.tar.gz
mana-8d3e43a7510dd7367c3bb62aae6841836f727493.tar.bz2
mana-8d3e43a7510dd7367c3bb62aae6841836f727493.tar.xz
mana-8d3e43a7510dd7367c3bb62aae6841836f727493.zip
Merged revisions 3740 via svnmerge from
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3740 | gmelquio | 2007-11-16 12:06:46 +0100 (vr, 16 nov 2007) | 1 line Delayed resource deletion by 30 seconds. ........
Diffstat (limited to 'src/resources/resource.h')
-rw-r--r--src/resources/resource.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/resource.h b/src/resources/resource.h
index 7c39f176..5b9a5eb8 100644
--- a/src/resources/resource.h
+++ b/src/resources/resource.h
@@ -24,6 +24,7 @@
#ifndef _TMW_RESOURCE_H
#define _TMW_RESOURCE_H
+#include <ctime>
#include <string>
/**
@@ -69,8 +70,9 @@ class Resource
~Resource();
private:
- unsigned int mRefCount; /**< Reference count */
- std::string mIdPath; /**< Path identifying this resource */
+ std::string mIdPath; /**< Path identifying this resource. */
+ time_t mTimeStamp; /**< Time at which the resource was orphaned. */
+ unsigned mRefCount; /**< Reference count. */
};
#endif