Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
// dentry
class CDentry : public MDSCacheObject, public LRUObject {
+ /*
+ * This class uses a boost::pool to handle allocation. This is *not*
+ * thread-safe, so don't do allocations from multiple threads!
+ *
+ * Alternatively, switch the pool to use a boost::singleton_pool.
+ */
+
private:
static boost::pool<> pool;
public:
class ObjectOperation;
ostream& operator<<(ostream& out, class CDir& dir);
-
-
class CDir : public MDSCacheObject {
+ /*
+ * This class uses a boost::pool to handle allocation. This is *not*
+ * thread-safe, so don't do allocations from multiple threads!
+ *
+ * Alternatively, switch the pool to use a boost::singleton_pool.
+ */
private:
static boost::pool<> pool;
public:
// cached inode wrapper
class CInode : public MDSCacheObject {
+ /*
+ * This class uses a boost::pool to handle allocation. This is *not*
+ * thread-safe, so don't do allocations from multiple threads!
+ *
+ * Alternatively, switch the pool to use a boost::singleton_pool.
+ */
+
private:
static boost::pool<> pool;
public: