rakshasa/libtorrent — pull request #21 by Yamagi (2012-08-19 09:54:30+00:00)
Title: Fixed another potential issue causing high loads while waiting for main thread to exit polling.

In rtorrent ce16621 some magic was added to src/thread_base.cc to migitate high load problems. A similar issue manifests on FreeBSD in the "new" libtorrent method thread_base::interrupt() in src/torrent/utils/thread_base.cc, added with commit aa9d73e4. The attached commit fixes this issue the same way as it was done in rtorrent.