Fixed some logic error when hadling the full and empty semaphores. Also fixed...
Fixed some logic error when hadling the full and empty semaphores. Also fixed the write/read wrapping, now no is used.
Signed-off-by: Barbu Alexandru Daniel barbualex.daniel2004@gmail.com