class BlockingBoolean extends AbstractQueuedSynchronizer {

    public void await(boolean value) throws InterruptedException {
        acquireSharedInterruptibly(value ? TRUE : FALSE);
    }

    public  BlockingBoolean(boolean value);

}