[edk2] How to use events without busy waiting?

Subject: [edk2] How to use events without busy waiting?

From: Thomas Rognon <tcrognon@gmail.com>

To: edk2-devel <edk2-devel@lists.sourceforge.net>

Date: 2014-04-20 12:42:18

Here is what I would like to do:

Foo () {
// do some stuff
// wait for a signal from a condition in code that's on a periodic timer
// do some stuff
}

From what I see in edk2, WaitForEvent is a busy loop around CheckEvent. Is there a way to do this so that the execution completely stops until code in the periodic timer tells it to resume? Thank you for any help!

Thomas