Trying out threading and event queues in allegro