Lines Matching refs:pool

26 **	otherwise, f is isolated from its pool. flag can be one of
32 /* Note that we do not free the space for a pool once it is allocated.
33 ** This is to prevent memory faults in calls such as sfsync(NULL) that walk the pool
62 /* look to see if there is a free pool */
102 Sfpool_t* p; /* the pool */
104 int n; /* current position in pool */
127 else /* shared pool of write-streams, data can be moved among streams */
168 /* delete a stream from its pool */
173 Sfpool_t* p; /* the pool */
175 int n; /* position in pool */
184 f->pool = NIL(Sfpool_t*);
209 /* if only one stream left, delete pool */
233 { if(!(p = f->pool) )
260 if(!f) /* return head of pool of pf regardless of lock states */
263 else if(!pf->pool || pf->pool == &_Sfpool)
265 else return pf->pool->sf[0];
289 /* f already in the same pool with pf */
290 if(f == pf || (pf && f->pool == pf->pool && f->pool != &_Sfpool) )
304 if(!pf) /* deleting f from its current pool */
305 { if((p = f->pool) != NIL(Sfpool_t*) && p != &_Sfpool)
307 if(p->sf[k] != f) /* a stream != f represents the pool */
317 if(!pf->pool || pf->pool == &_Sfpool || pf->pool->n_sf <= 0 )
319 else rv = pf->pool->sf[0]; /* return head of old pool */
323 if(pf->pool && pf->pool != &_Sfpool) /* always use current mode */
324 mode = pf->pool->mode;
335 if(_sfpmove(f,-1) < 0) /* isolate f from current pool */
338 if(!(p = pf->pool) || p == &_Sfpool) /* making a new pool */
341 if(_sfpmove(pf,-1) < 0) /* isolate pf from its current pool */
343 pf->pool = p;
348 f->pool = p; /* add f to pf's pool */
355 if(_sfpmove(f,0) < 0) /* make f head of pool */