Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (19 sloc) 386 Bytes
#ifndef POOL_H
#define POOL_H
#include <hiredis/async.h>
struct conf;
struct worker;
struct pool {
struct worker *w;
struct conf *cfg;
const redisAsyncContext **ac;
int count;
int cur;
};
struct pool *
pool_new(struct worker *w, int count);
redisAsyncContext *
pool_connect(struct pool *p, int attach);
const redisAsyncContext *
pool_get_context(struct pool *p);
#endif