get and monitor: only report fields that have changed

This commit is contained in:
mrkraimer
2018-02-16 06:03:57 -05:00
parent 952c482d68
commit 99d20ae903
4 changed files with 72 additions and 35 deletions
+5 -1
View File
@@ -169,7 +169,11 @@ void CAChannelProvider::poll()
void CAChannelProvider::attachContext()
{
if(ca_current_context()) return;
ca_client_context* thread_context = ca_current_context();
if (thread_context == current_context) return;
if (thread_context != NULL) {
throw std::runtime_error("CAChannelProvider: Foreign CA context in use");
}
int result = ca_attach_context(current_context);
if (result != ECA_NORMAL) {
std::cout <<