]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/respool.h
Implemented exceptions.
[libucw.git] / ucw / respool.h
index 39f310c121e2c3ee545697dcde8b86358a8958e4..c010b4a3f43b93c603732990f2ac4b5fbbccd440 100644 (file)
@@ -12,6 +12,7 @@
  *     - check other candidates for resourcification
  *     - respool as a resource in another respool?
  *     - unit tests
+ *     - automatic freeing of trans pool on thread exit
  */
 
 #ifndef _UCW_RESPOOL_H
@@ -31,6 +32,7 @@ struct resource {
   struct respool *rpool;
   const struct res_class *rclass;
   void *priv;                                          // Private to the class
+  // More data specific for the particular class can follow
 };
 
 struct res_class {
@@ -43,6 +45,7 @@ struct res_class {
 
 struct respool *rp_new(const char *name, struct mempool *mp);
 void rp_delete(struct respool *rp);
+void rp_detach(struct respool *rp);
 void rp_dump(struct respool *rp);
 
 static inline struct respool *