diff options
| author | Siva Chandra Reddy <sivachandra@google.com> | 2022-06-23 18:18:50 +0000 |
|---|---|---|
| committer | Siva Chandra Reddy <sivachandra@google.com> | 2022-06-24 08:22:53 +0000 |
| commit | f4580c6d5a44379f3b1be033f39ec7af78dbbbfa (patch) | |
| tree | f752af3d381abea1fd73fe38a903c54e4d93ff2d /libc/src/pthread/pthread_join.cpp | |
| parent | 2b3de2971790964691b351cc068f936eeeea32a4 (diff) | |
[libc][NFC] Remove the templatization from the linux implementation of thread.
This enables setting up a single "self" thread object to be returned by
API like thrd_self and pthread_self.
Diffstat (limited to 'libc/src/pthread/pthread_join.cpp')
| -rw-r--r-- | libc/src/pthread/pthread_join.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/src/pthread/pthread_join.cpp b/libc/src/pthread/pthread_join.cpp index c3bf4adc6372..0774d0268052 100644 --- a/libc/src/pthread/pthread_join.cpp +++ b/libc/src/pthread/pthread_join.cpp @@ -15,11 +15,11 @@ namespace __llvm_libc { -static_assert(sizeof(pthread_t) == sizeof(__llvm_libc::Thread<int>), - "Mismatch between pthread_t and internal Thread<int>."); +static_assert(sizeof(pthread_t) == sizeof(__llvm_libc::Thread), + "Mismatch between pthread_t and internal Thread."); LLVM_LIBC_FUNCTION(int, pthread_join, (pthread_t th, void **retval)) { - auto *thread = reinterpret_cast<Thread<void *> *>(&th); + auto *thread = reinterpret_cast<Thread *>(&th); int result = thread->join(retval); return result; } |
