Skip to content

Use __thread for thread-local data rather than pthread_get/setspecific #70

Description

@srirajpaul

pthread_get/getspecific is used to save and retrieve the state of the worker. We can use __thread storage class specifier to do the same which is supported by all the major compilers. Also, __thread is much more efficiently implemented by the compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions