|
|
|
@ -61,17 +61,17 @@ |
|
|
|
|
//#define GRPC_WORKQUEUE_REFCOUNT_DEBUG
|
|
|
|
|
#ifdef GRPC_WORKQUEUE_REFCOUNT_DEBUG |
|
|
|
|
#define GRPC_WORKQUEUE_REF(p, r) \ |
|
|
|
|
(grpc_workqueue_ref((p), __FILE__, __LINE__, (r)), (p)) |
|
|
|
|
grpc_workqueue_ref((p), __FILE__, __LINE__, (r)) |
|
|
|
|
#define GRPC_WORKQUEUE_UNREF(exec_ctx, p, r) \ |
|
|
|
|
grpc_workqueue_unref((exec_ctx), (p), __FILE__, __LINE__, (r)) |
|
|
|
|
void grpc_workqueue_ref(grpc_workqueue *workqueue, const char *file, int line, |
|
|
|
|
const char *reason); |
|
|
|
|
grpc_workqueue *grpc_workqueue_ref(grpc_workqueue *workqueue, const char *file, |
|
|
|
|
int line, const char *reason); |
|
|
|
|
void grpc_workqueue_unref(grpc_exec_ctx *exec_ctx, grpc_workqueue *workqueue, |
|
|
|
|
const char *file, int line, const char *reason); |
|
|
|
|
#else |
|
|
|
|
#define GRPC_WORKQUEUE_REF(p, r) (grpc_workqueue_ref((p)), (p)) |
|
|
|
|
#define GRPC_WORKQUEUE_REF(p, r) grpc_workqueue_ref((p)) |
|
|
|
|
#define GRPC_WORKQUEUE_UNREF(cl, p, r) grpc_workqueue_unref((cl), (p)) |
|
|
|
|
void grpc_workqueue_ref(grpc_workqueue *workqueue); |
|
|
|
|
grpc_workqueue *grpc_workqueue_ref(grpc_workqueue *workqueue); |
|
|
|
|
void grpc_workqueue_unref(grpc_exec_ctx *exec_ctx, grpc_workqueue *workqueue); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|