From 4d24115644fa1744f44529bba9fdb9aed0cb5c63 Mon Sep 17 00:00:00 2001 From: Sam Atac Date: Mon, 8 Jun 2020 18:45:56 +0000 Subject: [PATCH] removed threadlocal context and made the runtime context methods static --- .../context/threadlocal_context.h | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 api/include/opentelemetry/context/threadlocal_context.h diff --git a/api/include/opentelemetry/context/threadlocal_context.h b/api/include/opentelemetry/context/threadlocal_context.h deleted file mode 100644 index 255f7e69b9..0000000000 --- a/api/include/opentelemetry/context/threadlocal_context.h +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -#include "context.h" - -#include - -/* An implementation of the runtime context that uses thread local storage*/ -class ThreadLocalRuntimeContext: public RuntimeContext(){ - - std::string _CONTEXT_KEY = "current_context"; - - - - /* ThreadLocalRuntimeContext: Default constructor to set the - * current context to the thread local context - * - * Args: None - */ - ThreadLocalRuntimeContext(); - - /* attach: Sets the current 'Context' object. Returns a token - * that can be used to reset to the previous Context. - * - * Args: - * context : the context to set. - */ - Token attach(Context context) - - /* get_current: Return the current context. - * - * Args: None - */ - Context get_current(); - - - - /* detach: Resets the context to a previous value. - * - * Args: - * token: A reference to a previous context - */ - void detach(Token token); - -}; -