Added missing support for thread priority in RDOS applications.