Wait handler completion with a condition variable
Wait handler completion with a condition variable

Wait the completion of the handler execution properly with a condition
variable instead of an arbitrary sleep of 1 second.

WPO-Foundation/gnirehtet,Genymobile/gnirehtet,Genymobile/gnirehtet,WPO-Foundation/gnirehtet,WPO-Foundation/gnirehtet,WPO-Foundation/gnirehtet,Genymobile/gnirehtet