aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-06-02 16:55:54 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-06-02 16:55:54 -0700
commita4b89fed1c801cdb31a154c7e1c09e5650898e8a (patch)
treed0a00563db8df1da5d69dee362664a85112f20cb /include/grpc++
parentaaa03d74ceae4d48e31f4ba0619e359acd21505a (diff)
parentc86b1dd59d1e61b9377f2dca0741061b2e5de1da (diff)
Merge github.com:grpc/grpc into you-complete-me
Conflicts: src/core/iomgr/resolve_address_posix.c src/core/surface/server.c
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/impl/sync_no_cxx11.h6
-rw-r--r--include/grpc++/impl/thd_no_cxx11.h4
-rw-r--r--include/grpc++/server_context.h4
3 files changed, 11 insertions, 3 deletions
diff --git a/include/grpc++/impl/sync_no_cxx11.h b/include/grpc++/impl/sync_no_cxx11.h
index 5636373b81..dda939bf71 100644
--- a/include/grpc++/impl/sync_no_cxx11.h
+++ b/include/grpc++/impl/sync_no_cxx11.h
@@ -76,9 +76,9 @@ class lock_guard {
template <class mutex>
class unique_lock : public lock_guard<mutex> {
public:
- unique_lock(mutex &mu) : lock_guard(mu) { }
- void lock() { lock_internal(); }
- void unlock() { unlock_internal(); }
+ unique_lock(mutex &mu) : lock_guard<mutex>(mu) { }
+ void lock() { this->lock_internal(); }
+ void unlock() { this->unlock_internal(); }
};
class condition_variable {
diff --git a/include/grpc++/impl/thd_no_cxx11.h b/include/grpc++/impl/thd_no_cxx11.h
index a01b931df8..a6bdd7dfe9 100644
--- a/include/grpc++/impl/thd_no_cxx11.h
+++ b/include/grpc++/impl/thd_no_cxx11.h
@@ -82,6 +82,10 @@ class thread {
thread_function_base *func_;
gpr_thd_id thd_;
bool joined_;
+
+ // Disallow copy and assign.
+ thread(const thread&);
+ void operator=(const thread&);
};
} // namespace grpc
diff --git a/include/grpc++/server_context.h b/include/grpc++/server_context.h
index a62babd931..d88a3ae262 100644
--- a/include/grpc++/server_context.h
+++ b/include/grpc++/server_context.h
@@ -106,6 +106,10 @@ class ServerContext {
template <class R, class W>
friend class ::grpc::ServerReaderWriter;
+ // Prevent copying.
+ ServerContext(const ServerContext&);
+ ServerContext& operator=(const ServerContext&);
+
class CompletionOp;
void BeginCompletionOp(Call* call);