OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 #ifndef LIBRARIES_PTHREAD_PTHREAD_H_ |
| 7 #define LIBRARIES_PTHREAD_PTHREAD_H_ |
| 8 |
| 9 /** |
| 10 * Implementation of pthread.h for building the SDK natively on Windows. |
| 11 */ |
| 12 |
| 13 #ifdef __cplusplus |
| 14 extern "C" { |
| 15 #endif |
| 16 |
| 17 typedef int pthread_mutex_t; |
| 18 |
| 19 int pthread_mutex_init(pthread_mutex_t* m, void* traits); |
| 20 int pthread_mutex_destroy(pthread_mutex_t* m); |
| 21 |
| 22 int pthread_mutex_lock(pthread_mutex_t* m); |
| 23 int pthread_mutex_unlock(pthread_mutex_t* m); |
| 24 |
| 25 #ifdef __cplusplus |
| 26 } |
| 27 #endif |
| 28 |
| 29 #endif /* LIBRARIES_PTHREAD_PTHREAD_H_ */ |
OLD | NEW |