simple event.waitForMultipleObject implementation on posix