[all-commits] [llvm/llvm-project] 2a5d50: [libc] Add the pthread_mutex_t type.

Siva Chandra via All-commits all-commits at lists.llvm.org
Tue May 24 15:48:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a5d5078d5dadb1aaa4487c89a92c91a98e2ed12
      https://github.com/llvm/llvm-project/commit/2a5d5078d5dadb1aaa4487c89a92c91a98e2ed12
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-05-24 (Tue, 24 May 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
    M libc/include/llvm-libc-types/__mutex_type.h
    A libc/include/llvm-libc-types/pthread_mutex_t.h
    M libc/spec/posix.td
    M libc/src/pthread/CMakeLists.txt
    A libc/src/pthread/pthread_mutex_destroy.cpp
    A libc/src/pthread/pthread_mutex_destroy.h
    A libc/src/pthread/pthread_mutex_init.cpp
    A libc/src/pthread/pthread_mutex_init.h
    A libc/src/pthread/pthread_mutex_lock.cpp
    A libc/src/pthread/pthread_mutex_lock.h
    A libc/src/pthread/pthread_mutex_unlock.cpp
    A libc/src/pthread/pthread_mutex_unlock.h
    M libc/src/pthread/pthread_mutexattr.h
    M libc/test/src/pthread/CMakeLists.txt
    A libc/test/src/pthread/pthread_mutex_test.cpp

  Log Message:
  -----------
  [libc] Add the pthread_mutex_t type.

Simple implementations of the functions pthread_mutex_init,
pthread_mutex_destroy, pthread_mutex_lock and pthread_mutex_unlock have
have also been added. Future patches will extend these functions to add
features required by the POSIX specification.

Reviewed By: lntue

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




More information about the All-commits mailing list