#include "rx.h"
#include "rx_atomic.h"
+#include "rx_call.h"
+#include "rx_globals.h"
struct rxevent {
struct opr_queue q;
clock_Sub(&adjTime, &now);
+ /* If there are no events in the tree, then there's nothing to adjust */
+ if (eventTree.first == NULL)
+ goto out;
+
node = opr_rbtree_first(&eventTree.head);
while(node) {
struct rxevent *event = opr_containerof(node, struct rxevent, node);