aboutsummaryrefslogtreecommitdiff
path: root/libc/src/pthread/pthread_mutex_init.h
blob: 678cac32d900d4875ab66b03cad40c8c1e13b05f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//===-- Implementation header for pthread_mutex_init function ---*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SRC_PTHREAD_PTHREAD_MUTEX_INIT_H
#define LLVM_LIBC_SRC_PTHREAD_PTHREAD_MUTEX_INIT_H

#include <pthread.h>

namespace __llvm_libc {

int pthread_mutex_init(pthread_mutex_t *mutex,
                       const pthread_mutexattr_t *__restrict attr);

} // namespace __llvm_libc

#endif // LLVM_LIBC_SRC_PTHREAD_PTHREAD_MUTEX_INIT_H