blob: 10421e2c1eee8a95c3035d551d0329d7a6332d4c [file] [log] [blame]
Elliott Hughes4bd97ce2014-04-10 17:48:14 -07001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _THREAD_PRIVATE_H_
18#define _THREAD_PRIVATE_H_
19
20#include <pthread.h>
21
22/* Note that these aren't compatible with the usual OpenBSD ones which lazy-initialize! */
23#define _MUTEX_LOCK(l) pthread_mutex_lock((pthread_mutex_t*) l)
24#define _MUTEX_UNLOCK(l) pthread_mutex_unlock((pthread_mutex_t*) l)
25
26#endif /* _THREAD_PRIVATE_H_ */