bitcoin/bitcoin — pull request #1252 by sipa (2012-05-10 19:15:15+00:00)
Title: Semaphores

* Use semaphores instead of condition variables for limiting outgoing connections
* Cleanup handling of outgoing connections
* Use polling implementation of semaphores on OSX, as boost's semaphores seem to spinlock.