Cosmetic change : rtdm_in_rt_context instead of ipipe_root_p.
--- a/devices/rtdmnet.c Mon Oct 01 19:54:54 2018 +0200
+++ b/devices/rtdmnet.c Mon Oct 01 22:05:31 2018 +0200
@@ -350,7 +350,7 @@
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
- if (ipipe_root_p)
+ if (rtdm_in_rt_context())
ret = nrt_rtdm_sendmsg(dev->socket, &msg);
else
ret = rtdm_sendmsg(dev->socket, &msg, 0);
@@ -406,7 +406,7 @@
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
- if (ipipe_root_p)
+ if (rtdm_in_rt_context())
ret = nrt_rtdm_recvmsg(dev->socket, &msg);
else
ret = rtdm_recvmsg(dev->socket, &msg, MSG_DONTWAIT);