|Date:||Thu, 18 Jul 2019 13:56:48 +0000|
|To:||bug-Coro [...] rt.cpan.org|
|From:||"Maxim Skorobogatov" <maxim.skorobogatov [...] myoffice.team>|
Hello! I've just discovered a bug in Coro::RWLock::unlock and would like to offer a fix for it. Last writer unlock should wake up all waiting readers, but it wakes up only one reader. Please see example in the attached file. Run it and you will see that readers works in series, one-by-one. Then uncomment fixed Coro::RWLock::unlock and run again - you will see all readers working in parallel. Another simple fix is needed for comment line in Coro::RWLock::new:( - # [rdcount, [readqueue], wrcount, [writequeue]] + # [wrcount, [writequeue], rdcount, [readqueue]] Thank you! With best regards, -- Max Skorobogatov
Message body is not shown because sender requested not to inline it.