12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef _UCLIBC_PTHREAD_H
- #define _UCLIBC_PTHREAD_H
- #ifndef _PTHREAD_H
- # error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
- #endif
- struct _pthread_cleanup_buffer;
- extern int weak_function __pthread_mutex_init (pthread_mutex_t *__mutex,
- __const pthread_mutexattr_t *__mutex_attr);
- extern int weak_function __pthread_mutex_lock (pthread_mutex_t *__mutex);
- extern int weak_function __pthread_mutex_unlock (pthread_mutex_t *__mutex);
- extern int weak_function __pthread_mutex_trylock (pthread_mutex_t *__mutex);
- extern void weak_function _pthread_cleanup_push_defer (
- struct _pthread_cleanup_buffer *__buffer,
- void (*__routine) (void *), void *__arg);
- extern void weak_function _pthread_cleanup_pop_restore (
- struct _pthread_cleanup_buffer *__buffer,
- int __execute);
- #endif
|