changed events buffer from list to deque
[fix #6] moved _event_loop callback rearming to the post method, so it is triggered only when a post is triggered