diff options
author | 2015-02-11 16:31:45 -0800 | |
---|---|---|
committer | 2015-02-11 16:31:45 -0800 | |
commit | 47a573602a27e718a7f13d5a9cceed7519e42234 (patch) | |
tree | 43f5336ddab0996677b0c499ad6500174b8b47e9 /include/grpc++/impl/call.h | |
parent | 0ef1a928186f9b5afba1b1677bc492130142720e (diff) |
Fix ownership
Diffstat (limited to 'include/grpc++/impl/call.h')
-rw-r--r-- | include/grpc++/impl/call.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/grpc++/impl/call.h b/include/grpc++/impl/call.h index 5922e2581a..9ac92a00dd 100644 --- a/include/grpc++/impl/call.h +++ b/include/grpc++/impl/call.h @@ -112,11 +112,6 @@ class CallOpBuffer final : public CompletionQueueTag { grpc_metadata *trailing_metadata_ = nullptr; }; -class CCallDeleter { - public: - void operator()(grpc_call *c); -}; - // Channel and Server implement this to allow them to hook performing ops class CallHook { public: @@ -127,17 +122,18 @@ class CallHook { // Straightforward wrapping of the C call object class Call final { public: + /* call is owned by the caller */ Call(grpc_call *call, CallHook *call_hook_, CompletionQueue *cq); void PerformOps(CallOpBuffer *buffer); - grpc_call *call() { return call_.get(); } + grpc_call *call() { return call_; } CompletionQueue *cq() { return cq_; } private: CallHook *call_hook_; CompletionQueue *cq_; - std::unique_ptr<grpc_call, CCallDeleter> call_; + grpc_call* call_; }; } // namespace grpc |