WW.c 262 B

123456789101112131415
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <liblockdep/rwlock.h>
  3. void main(void)
  4. {
  5. pthread_rwlock_t a, b;
  6. pthread_rwlock_init(&a, NULL);
  7. pthread_rwlock_init(&b, NULL);
  8. pthread_rwlock_wrlock(&a);
  9. pthread_rwlock_rdlock(&b);
  10. pthread_rwlock_wrlock(&a);
  11. }