GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-10
Constituent: pbs     Tag: sun-gcc
#include "PBS/RW.h"
Include dependency graph for RW.c:
Functions | |
int | RW_free (RW_ctl *rw, RW_free_cb free, void *ctx, void *resource, void *amount) |
Frees a resource, potentially waking up a task pending on an RW_get(). | |
void * | RW_get (RW_ctl *rw, RW_get_cb get, void *ctx, void *amount) |
Attempts to allocate a resource using the provided get routine. Whether the resource is available or not, this routine returns immediately with the return value of the get routine. See RW_getW() and RW_getW_toc() for versions that implement waiting. If the resource is disabled, the routine returns NULL. | |
void * | RW_getW (RW_ctl *rw, RW_get_cb get, void *ctx, void *amount) |
Attempts to allocate a resource using the provided get routine. This routine blocks until the get routine returns a non-NULL value. If nowaiting is desired, see RW_get(). If a waiting with a timeout is desired, see RW_getW_toc(). | |
void * | RW_getW_toc (RW_ctl *rw, RW_get_cb get, void *ctx, void *amount, const TOC *toc) |
Attempts to allocate a resource using the provided get routine. This routine blocks until the get routine returns a non-NULL value or until the timeout period expires. If nowaiting is desired, see RW_get(). If a waiting with no timeout is desired, see RW_getW_toc(). |
CVS $Id: RW.c,v 1.4 2004/10/20 14:36:53 russell Exp $
|
Frees a resource, potentially waking up a task pending on an RW_get().
(*free)(void *ctx, void *resource, void *amount); where typically ctx provides context to the free routine, the resource is a pointer to the resource being freed, and amount is the amount of the resource being freed.
|
|
Attempts to allocate a resource using the provided get routine. Whether the resource is available or not, this routine returns immediately with the return value of the get routine. See RW_getW() and RW_getW_toc() for versions that implement waiting. If the resource is disabled, the routine returns NULL.
void *resource = (*get)(void *ctx, void *amount);
While the names of the two parameters to the get routine are suggestive, they are, in fact, just two void *'s, so the get routine may make any use of them it pleases. |
|
Attempts to allocate a resource using the provided get routine. This routine blocks until the get routine returns a non-NULL value. If nowaiting is desired, see RW_get(). If a waiting with a timeout is desired, see RW_getW_toc().
void *resource = (*get)(void *ctx, void *amount);
While the names of the two parameters to the get routine are suggestive, they are, in fact, just two void *'s, so the get routine may make any use of them it pleases. |
|
Attempts to allocate a resource using the provided get routine. This routine blocks until the get routine returns a non-NULL value or until the timeout period expires. If nowaiting is desired, see RW_get(). If a waiting with no timeout is desired, see RW_getW_toc().
void *resource = (*get)(void *ctx, void *amount);
While the names of the two parameters to the get routine are suggestive, they are, in fact, just two void *'s, so the get routine may make any use of them it pleases.
|