+#ifdef WITH_PROCESS_EVENT
+static void compareAndApplyTimeout(uint32_t *nextEventTime,
+ uint64_t timeoutSec)
+{
+ uint32_t timeoutMs = timeoutSec * MS_PER_SEC;
+ if (timeoutMs < *nextEventTime)
+ {
+ *nextEventTime = timeoutMs;
+ }
+}
+
+void RMProcess(uint32_t *nextEventTime)
+#else // WITH_PROCESS_EVENT
+void RMProcess(void)
+#endif // !WITH_PROCESS_EVENT