|
Message-ID: <alpine.LNX.2.11.1504051712170.8195@monopod.intra.ispras.ru> Date: Sun, 5 Apr 2015 17:17:35 +0300 (MSK) From: Alexander Monakov <amonakov@...ras.ru> To: musl@...ts.openwall.com Subject: Re: Resuming work on new semaphore In a similar vein, if the caller explicitely kills other waiters before invoking sem_post and sem_getvalue, it will also reveal an inconsistency with the new implementation: returned value of 0 will look as if sem_post has woken some waiters, even though the caller could know for certain that no tasks were waiting on the semaphore. Well we can make sem_getvalue return val[0]+val[1] instead... ;) Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.