status is unused pass NULL to wait when you don't use the return status.