Add documentation for semaphore and add a semaphore_try_wait function.

Change-Id: I5440744e4bf7192efc4c8d0205502aa4296a4f9f
2 files changed