From a17c028c8e100dcc8d910bff7cd967b5cd883325 Mon Sep 17 00:00:00 2001 From: Sam Atac Date: Mon, 8 Jun 2020 18:45:59 +0000 Subject: [PATCH] removed threadlocal context and made the runtime context methods static --- api/include/opentelemetry/context/context.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/include/opentelemetry/context/context.h b/api/include/opentelemetry/context/context.h index 7a572e68dc..a97f55db1d 100644 --- a/api/include/opentelemetry/context/context.h +++ b/api/include/opentelemetry/context/context.h @@ -39,14 +39,14 @@ class RuntimeContext { * Args: * context : the context to set. */ - virtual int attach(Context context); + static Token attach(Context context); /* get_current: Return the current context. * * Args: None */ - virtual Context get_current(); + static Context get_current(); /* detach: Resets the context to a previous value. @@ -54,7 +54,7 @@ class RuntimeContext { * Args: * token: A reference to a previous context */ - virtual void detach(Token token); + static void detach(Token token); };