Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

SpanImpl::name() has to grab a lock and copy the name.#369

Merged
g-easy merged 2 commits intocensus-instrumentation:masterfrom
g-easy:threadsafety
Aug 7, 2019
Merged

SpanImpl::name() has to grab a lock and copy the name.#369
g-easy merged 2 commits intocensus-instrumentation:masterfrom
g-easy:threadsafety

Conversation

@g-easy
Copy link
Copy Markdown
Contributor

@g-easy g-easy commented Aug 1, 2019

Because SetName could change the name at any time.

This isn't a bug yet because only running_span_store calls into name(),
in a code path we're not using yet.

This error can be caught by -Wthread-safety-reference with clang-8 and
later.

Because SetName could change the name at any time.

This isn't a bug yet because only running_span_store calls into name(),
in a code path we're not using yet.

This error can be caught by -Wthread-safety-reference with clang-8 and
later.
@g-easy g-easy merged commit 7063ccb into census-instrumentation:master Aug 7, 2019
@g-easy g-easy deleted the threadsafety branch August 7, 2019 06:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants