blob: 4edb5661b79e2705dd7edf85b5b016f0ef26ef15 [file] [log] [blame]
Siva Chandra Reddy8dc42802022-07-12 21:50:03 +00001//===-- Implementation header for pthread_self function ---------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
Guillaume Chatelet270547f2023-09-21 11:14:47 +02009#ifndef LLVM_LIBC_SRC_PTHREAD_PTHREAD_SELF_H
10#define LLVM_LIBC_SRC_PTHREAD_PTHREAD_SELF_H
Siva Chandra Reddy8dc42802022-07-12 21:50:03 +000011
Petr Hosek5ff3ff32024-07-12 09:28:41 -070012#include "src/__support/macros/config.h"
Siva Chandra Reddy8dc42802022-07-12 21:50:03 +000013#include <pthread.h>
14
Petr Hosek5ff3ff32024-07-12 09:28:41 -070015namespace LIBC_NAMESPACE_DECL {
Siva Chandra Reddy8dc42802022-07-12 21:50:03 +000016
17pthread_t pthread_self();
18
Petr Hosek5ff3ff32024-07-12 09:28:41 -070019} // namespace LIBC_NAMESPACE_DECL
Siva Chandra Reddy8dc42802022-07-12 21:50:03 +000020
Guillaume Chatelet270547f2023-09-21 11:14:47 +020021#endif // LLVM_LIBC_SRC_PTHREAD_PTHREAD_SELF_H