Cosmetic change : rtdm_in_rt_context instead of ipipe_root_p. stable-1.5
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Mon, 01 Oct 2018 22:05:31 +0200
branchstable-1.5
changeset 2718 137cdf41bcec
parent 2717 b5e3de0467a5
child 2719 94c9657e0bee
Cosmetic change : rtdm_in_rt_context instead of ipipe_root_p.
devices/rtdmnet.c
--- 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);