Lines Matching refs:ctx
56 #define STAT_L(ctx) pthread_mutex_lock(&ctx->stats_lock); argument
57 #define STAT_UL(ctx) pthread_mutex_unlock(&ctx->stats_lock); argument
58 #define STAT_INCR(ctx, stat, amount) { \ argument
59 pthread_mutex_lock(&ctx->stats_lock); \
60 ctx->global_stats.stat += amount; \
61 pthread_mutex_unlock(&ctx->stats_lock); \
64 #define STAT_DECR(ctx, stat, amount) { \ argument
65 pthread_mutex_lock(&ctx->stats_lock); \
66 ctx->global_stats.stat -= amount; \
67 pthread_mutex_unlock(&ctx->stats_lock); \
275 void *ctx; // if we're a generator based function. member
296 typedef uint32_t (*hash_selector_func)(uint64_t hash, void *ctx);
299 void *ctx; member
481 proxy_ctx_t *ctx; // main context. member
577 proxy_ctx_t *ctx; // main context. member
596 void mcp_sharedvm_delta(proxy_ctx_t *ctx, int tidx, const char *name, int delta);
597 void mcp_sharedvm_remove(proxy_ctx_t *ctx, int tidx, const char *name);
600 void mcp_gobj_unref(proxy_ctx_t *ctx, struct mcp_globalobj_s *g);
604 void proxy_init_event_thread(proxy_event_thread_t *t, proxy_ctx_t *ctx, struct event_base *base);
860 int _start_proxy_config_threads(proxy_ctx_t *ctx);
861 int proxy_thread_loadconf(proxy_ctx_t *ctx, LIBEVENT_THREAD *thr);