jumpnbrownweasel 71f8762959
Fix for #13163: DefaultRwLock accumulates write-waiters, eventually fails to write lock (#13180)
* Fix for: DefaultRwLock accumulates write-waiters, eventually fails to write lock #13163

* Comment out debug.print at the end of the last test.

* Code formatting

* - use equality test after lock/unlock rather than peeking into internals.
  however, this is still implementation specific and only done for
  DefaultRwLock.
- add num_reads maximum to ensure that reader threads stop if writer threads are
  starved
- use relaxed orderings for the read atomic counter
- don't check at the end for non-zero read ops, since the reader threads may
  only run once if they are starved

* More review changes
- Monotonic is sufficient for incrementing the reads counter
2022-10-17 18:15:15 -05:00
..
2022-10-13 13:21:19 +02:00
2022-10-12 04:04:43 -04:00
2022-09-12 18:13:24 -07:00
2022-10-06 21:22:20 +03:00
2022-10-17 18:01:05 -04:00
2022-08-17 20:08:13 +02:00
2022-08-31 19:30:51 +02:00
2022-08-23 21:11:02 -07:00
2022-01-07 00:06:06 -05:00
2022-09-11 23:18:43 -04:00
2022-10-16 11:35:27 -04:00
2022-09-07 15:22:30 +03:00
2022-09-12 18:13:24 -07:00
2022-04-15 17:01:01 -05:00
2022-01-07 00:06:06 -05:00
2022-09-13 20:26:04 -04:00