Skip to content

Commit

Permalink
removed threadlocal context and made the runtime context methods static
Browse files Browse the repository at this point in the history
  • Loading branch information
satac2 committed Jun 8, 2020
1 parent 4d24115 commit a17c028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/include/opentelemetry/context/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@ 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.
*
* Args:
* token: A reference to a previous context
*/
virtual void detach(Token token);
static void detach(Token token);


};
Expand Down

0 comments on commit a17c028

Please sign in to comment.