google/certificate-transparency — pull request #321 by AlCutter (2014-12-10 16:50:05+00:00)
Title: Add some sanity methods to allow blocking methods to check that they're ...

...not being called on the libevent thread.

Useful to poke you in the eye if you write something which is liable to deadlock without requiring digging with gdb to figure out what's happened.