summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-clnt.h
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2020-05-22 15:06:57 +0300
committerMOHIT AGRAWAL <moagrawa@redhat.com>2020-06-03 03:06:44 +0000
commitcab995fd9a66083a7b8f591105f3a6d550571496 (patch)
tree58cff35941ca87c19c11eba1d4bac43228886286 /rpc/rpc-lib/src/rpc-clnt.h
parent443e8d8e6fe8c12f6872717710855390a584ef53 (diff)
rpc, gf_attach: add minimal proper synchronization
Implement minimal proper synchronization between gf_attach and underlying RPC layer using convenient POSIX primitives. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Fixes: #1260 Change-Id: Ib5130b586a8b65ed5cf5f9156c111b161570224b
Diffstat (limited to 'rpc/rpc-lib/src/rpc-clnt.h')
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.h b/rpc/rpc-lib/src/rpc-clnt.h
index 0d0b115578c..2945265200b 100644
--- a/rpc/rpc-lib/src/rpc-clnt.h
+++ b/rpc/rpc-lib/src/rpc-clnt.h
@@ -127,6 +127,7 @@ struct rpc_clnt_config {
struct rpc_clnt_connection {
pthread_mutex_t lock;
+ pthread_cond_t cond;
rpc_transport_t *trans;
struct rpc_clnt_config config;
gf_timer_t *reconnect;