[lib][trusty] Add support for handle sets
Handle set is a waitable object (represented by handle) that
can contain other handles. Functionally it is pretty close
to epoll in linux.
User can call:
handle_set_create - to creates a new empty handle set
handle_set_ctrl - to add/modify/delete content of specified
handle set.
After handle set is constructed user can wait on handle set
using "wait" call to get an event in a similar manner as it is
done for regular handles. Going forward, building and waiting
on handle set will be preferred mechanism for receiving events
for Trusty applications. Support for wait_any will be deprecated
and removed at some point.
Handle sets can be nested.
Change-Id: I6b68abd25456f411219ede0c43c29e7b8378ad5f
7 files changed