X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Frespool.h;h=c010b4a3f43b93c603732990f2ac4b5fbbccd440;hb=f0da660715a0061bc350e159f3689755c79ab006;hp=39f310c121e2c3ee545697dcde8b86358a8958e4;hpb=aeb6304585a714ebff73955095d9b49863ebb199;p=libucw.git diff --git a/ucw/respool.h b/ucw/respool.h index 39f310c1..c010b4a3 100644 --- a/ucw/respool.h +++ b/ucw/respool.h @@ -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 *