diff options
Diffstat (limited to 'pool.h')
-rw-r--r-- | pool.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |