|
Message-ID: <alpine.LNX.2.11.1503012129270.19651@monopod.intra.ispras.ru> Date: Sun, 1 Mar 2015 21:54:13 +0300 (MSK) From: Alexander Monakov <amonakov@...ras.ru> To: musl@...ts.openwall.com Subject: Re: semaphore redesign A few more things from IRC discussion. Fields in the semaphore struct should be made volatile. The new implementation eliminates the last call site with non-dummy cleanup argument to __timedwait. New sem_timedwait shows worse performance in Rich's sem-bench on my desktop, I think primarily because it does not have sem_trywait preceding the spin loop anymore, plus the loop itself is also a bit leaner. My proposal is to use a different spin count somewhere in 150-200 range instead of 100. 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.