Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22437

make THR_THD* variable thread_local

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 10.5.3
    • Component/s: Server
    • Labels:
      None

      Description

      Since 10.5 all supported compilers know about C++11 thread_local. It's faster than library implementations like pthread_getspecific(). So, lets optimize access to this variable a little bit by using native TLS implementation.

        Attachments

          Activity

            People

            Assignee:
            kevg Eugene Kosov
            Reporter:
            kevg Eugene Kosov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: