summaryrefslogtreecommitdiff
path: root/pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'pool.h')
-rw-r--r--pool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pool.h b/pool.h
index c8b5036..3dbc7f7 100644
--- a/pool.h
+++ b/pool.h
@@ -27,7 +27,8 @@
typedef struct PgConnPool {
PGconn **conns; /* array of connections */
size_t size; /* max number of connections */
- pthread_t *avail; /* slots of allocated/available connections per thread */
+ unsigned int *avail; /* status of slots */
+ pthread_t *thread; /* slots of allocated/available connections per thread */
pthread_mutex_t lock; /* monitor lock */
pthread_cond_t cond; /* condition signalling a free connection */
} PgConnPool;