Added notifty_all and sync_notify_all

Tests pass.