Created the GUI interpreter thread flush() method for blocking until the queue is empty.
Authored by: bugman 2011-08-25
Parent: [r14459]
Child: [r14461]