RT-Middleware for Functional Safety