Skip to content

Are global and thread_local the same? #24

@memark

Description

@memark

Reading in the docs:

mock_instant::global

  • MockClock will have a new state per thread
  • Instantwill have a new state per thread
  • SystemTime will have a new state per thread

mock_instant::thread_local

  • MockClock will have a new state per thread
  • Instantwill have a new state per thread
  • SystemTime will have a new state per thread

all of them say "new state per thread", which I didn't expect. Is this a typo? If not, what difference is this section trying to describe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions