notify_one vs notify_all

When should you use notify_all() instead of notify_one() on a condition variable?