Implemented "br_wait_for_event(br_event*)"
Added an event queue in the thread variables