SDL2: implement wait with timeout for condition.
SDL2: implement wait with timeout for condition.

kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre