lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #include <stddef.h> |
| 2 | #include <stdio.h> |
| 3 | #include <bits/pthreadtypes.h> |
| 4 | #include <bits/wordsize.h> |
| 5 | |
| 6 | -- |
| 7 | |
| 8 | MUTEX offsetof (pthread_rwlock_t, __data.__lock) |
| 9 | NR_READERS offsetof (pthread_rwlock_t, __data.__nr_readers) |
| 10 | READERS_WAKEUP offsetof (pthread_rwlock_t, __data.__readers_wakeup) |
| 11 | WRITERS_WAKEUP offsetof (pthread_rwlock_t, __data.__writer_wakeup) |
| 12 | READERS_QUEUED offsetof (pthread_rwlock_t, __data.__nr_readers_queued) |
| 13 | WRITERS_QUEUED offsetof (pthread_rwlock_t, __data.__nr_writers_queued) |
| 14 | FLAGS offsetof (pthread_rwlock_t, __data.__flags) |
| 15 | WRITER offsetof (pthread_rwlock_t, __data.__writer) |
| 16 | PSHARED offsetof (pthread_rwlock_t, __data.__shared) |