This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make many-reader mutexes more resilient
authorKarl Williamson <khw@cpan.org>
Wed, 9 Dec 2020 01:30:56 +0000 (18:30 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 20 Dec 2020 05:00:29 +0000 (22:00 -0700)
commit7510ca24a0ab79a6cf9eb76f13117b4e4d18051e
treee017ae2b953bec2c0d5e92ca455216752d52cc0a
parentfbd8d54d31dadf460479192f11f6569ab3d10dd3
Make many-reader mutexes more resilient

These mutexes rely on a counter being accurate to work.  If for some
reason that I can't imagine happening, the count goes below 0, this
commit resets it to zero, which may be enough to cause the program to
continue.
thread.h