Add concurrent selfpipe trick implementation.