[all-commits] [llvm/llvm-project] 4a738e: [libc] Add implemementations of thread specific da...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu Aug 11 22:29:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a738ee8220e02df62b7b43d3fe5b2d6be88c482
      https://github.com/llvm/llvm-project/commit/4a738ee8220e02df62b7b43d3fe5b2d6be88c482
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M libc/config/linux/api.td
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/include/CMakeLists.txt
    M libc/include/llvm-libc-types/CMakeLists.txt
    A libc/include/llvm-libc-types/__pthread_tss_dtor_t.h
    A libc/include/llvm-libc-types/pthread_key_t.h
    A libc/include/llvm-libc-types/tss_dtor_t.h
    A libc/include/llvm-libc-types/tss_t.h
    M libc/spec/posix.td
    M libc/spec/stdc.td
    M libc/src/__support/threads/CMakeLists.txt
    M libc/src/__support/threads/thread.cpp
    M libc/src/__support/threads/thread.h
    M libc/src/pthread/CMakeLists.txt
    A libc/src/pthread/pthread_getspecific.cpp
    A libc/src/pthread/pthread_getspecific.h
    A libc/src/pthread/pthread_key_create.cpp
    A libc/src/pthread/pthread_key_create.h
    A libc/src/pthread/pthread_key_delete.cpp
    A libc/src/pthread/pthread_key_delete.h
    A libc/src/pthread/pthread_setspecific.cpp
    A libc/src/pthread/pthread_setspecific.h
    M libc/src/threads/CMakeLists.txt
    A libc/src/threads/tss_create.cpp
    A libc/src/threads/tss_create.h
    A libc/src/threads/tss_delete.cpp
    A libc/src/threads/tss_delete.h
    A libc/src/threads/tss_get.cpp
    A libc/src/threads/tss_get.h
    A libc/src/threads/tss_set.cpp
    A libc/src/threads/tss_set.h
    M libc/test/integration/src/pthread/CMakeLists.txt
    A libc/test/integration/src/pthread/pthread_tss_test.cpp
    M libc/test/integration/src/threads/CMakeLists.txt
    A libc/test/integration/src/threads/tss_test.cpp

  Log Message:
  -----------
  [libc] Add implemementations of thread specific data related API.

Specifically, POSIX functions pthread_key_create, pthread_key_delete,
pthread_setspecific and pthread_getspecific have been added. The C
standard equivalents tss_create, tss_delete, tss_set and tss_get have
also been added.

Reviewed By: lntue, michaelrj

Differential Revision: https://reviews.llvm.org/D131647




More information about the All-commits mailing list