~ubuntu-branches/ubuntu/trusty/apr-util/trusty

« back to all changes in this revision

Viewing changes to include/apr_reslist.h

  • Committer: Package Import Robot
  • Author(s): Stefan Fritsch
  • Date: 2013-11-24 14:21:14 UTC
  • mfrom: (20.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131124142114-uw10gvpf90yw4l9n
Tags: 1.5.3-1
* New upstream version.
* When querying the berkley db version, strip the epoch from the
  version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
/* Generic constructor called by resource list when it needs to create a
45
45
 * resource.
46
46
 * @param resource opaque resource
47
 
 * @param param flags
 
47
 * @param params flags
48
48
 * @param pool  Pool
49
49
 */
50
50
typedef apr_status_t (*apr_reslist_constructor)(void **resource, void *params,
53
53
/* Generic destructor called by resource list when it needs to destroy a
54
54
 * resource.
55
55
 * @param resource opaque resource
56
 
 * @param param flags
 
56
 * @param params flags
57
57
 * @param pool  Pool
58
58
 */
59
59
typedef apr_status_t (*apr_reslist_destructor)(void *resource, void *params,
111
111
 * Retrieve a resource from the list, creating a new one if necessary.
112
112
 * If we have met our maximum number of resources, we will block
113
113
 * until one becomes available.
 
114
 * @param reslist The resource list.
 
115
 * @param resource An address where the pointer to the resource
 
116
 *                will be stored.
114
117
 */
115
118
APU_DECLARE(apr_status_t) apr_reslist_acquire(apr_reslist_t *reslist,
116
119
                                              void **resource);
117
120
 
118
121
/**
119
122
 * Return a resource back to the list of available resources.
 
123
 * @param reslist The resource list.
 
124
 * @param resource The resource to return to the list.
120
125
 */
121
126
APU_DECLARE(apr_status_t) apr_reslist_release(apr_reslist_t *reslist,
122
127
                                              void *resource);
140
145
 * Invalidate a resource in the pool - e.g. a database connection
141
146
 * that returns a "lost connection" error and can't be restored.
142
147
 * Use this instead of apr_reslist_release if the resource is bad.
 
148
 * @param reslist The resource list.
 
149
 * @param resource The resource to invalidate.
143
150
 */
144
151
APU_DECLARE(apr_status_t) apr_reslist_invalidate(apr_reslist_t *reslist,
145
152
                                                 void *resource);