Simiar to rtkSemaphoreP, execute this function returns
1 if the semaphore is successfully requested, and it
immediately returns 0 if the semaphore is not available. This
function call does not block the calling thread.
Copyright © 2008-10-25 by Tak Auyeung