summaryrefslogtreecommitdiff
path: root/src/resources/resource.h
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-11-16 11:06:46 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-11-16 11:06:46 +0000
commit89e78bcc5b29a8dd14422a8fa6a23a17a93e98e0 (patch)
treee738bf9dde771e59f19e8f162e4e910fe3cc3c1f /src/resources/resource.h
parent427c2ec86e33c7a23ae38c862d8866fcb2c2eb16 (diff)
downloadmana-client-89e78bcc5b29a8dd14422a8fa6a23a17a93e98e0.tar.gz
mana-client-89e78bcc5b29a8dd14422a8fa6a23a17a93e98e0.tar.bz2
mana-client-89e78bcc5b29a8dd14422a8fa6a23a17a93e98e0.tar.xz
mana-client-89e78bcc5b29a8dd14422a8fa6a23a17a93e98e0.zip
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