added WaitForSingleEvent yield instruction