commit | 3b92d6e04430cc0460690ab6b5c69dd6bde21eab | [log] [tgz] |
---|---|---|
author | Mattias EngdegÄrd <mattiase@acm.org> | Thu May 14 16:19:34 2015 +0200 |
committer | Jonathan Yong <10walls@gmail.com> | Thu Jul 23 20:13:56 2015 +0800 |
tree | 5857507ba5dc78d6ac4caa8b70d8b9249037ce49 | |
parent | 6d205142a4ab731b97ad7d310be3428fac9baec7 [diff] |
Rewrite the pthread spinlock implementation. This implementation lets the pthread spinlocks just be spinlocks, as they should be. It makes them much faster in every respect. Since these spinlocks are used in many other places in the library, those routines have now become measureably faster as well. For example, pthread_getspecific has gained substantial speed as a result. (cherry picked from commit 249898d9ae310959116efa333e4e3e690cf97452)