import migen in litex/gen
[litex.git] / litex / soc / misoc / software / include / base / pthread.h
1 #ifndef __PTHREAD_H
2 #define __PTHREAD_H
3
4 typedef int pthread_rwlock_t;
5
6 #define PTHREAD_RWLOCK_INITIALIZER 0
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 inline int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock)
13 { return 0; }
14 inline int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock)
15 { return 0; }
16 inline int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock)
17 { return 0; }
18 inline int pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock)
19 { return 0; }
20 int pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
21 { return 0; }
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif /* __PTHREAD_H */