From 01d9b71e596bcdb8ea179cad97726163f3dfc691 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Fri, 15 Nov 2019 11:26:41 +0100 Subject: [PATCH] is_sync_running() added --- Adapter.cc | 5 +++++ Adapter.hh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Adapter.cc b/Adapter.cc index c20e1d7..74f3a54 100644 --- a/Adapter.cc +++ b/Adapter.cc @@ -116,5 +116,10 @@ namespace pEp { } session(release); } + + bool is_sync_running() + { + return _sync_thread != nullptr; + } } } diff --git a/Adapter.hh b/Adapter.hh index 907f8f1..51dc87c 100644 --- a/Adapter.hh +++ b/Adapter.hh @@ -43,6 +43,8 @@ namespace pEp { // injects a NULL event into sync_event_queue to denote sync thread to shutdown, // and joins & removes the sync thread void shutdown(); + + bool is_sync_running(); } }