* Added helper methods and rewrote Remove() to take advantage of the fact
that the event list is ordered.
* Introduced a termination flag to shutdown the thread as early as
possible.
* Event::Do() get a pointer to the queue as parameter.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1515 a95241bf-73f2-0310-859d-f6bbb57e9c96