Landau, Bracha wrote:
 > //*********************************************************
 > // The following is a snippet from the kernel module:
 > // (If the delay is put in, it works fine.)
 > //**********************************************************
 > 
 > static void *LinkThread (struct net_device *dev)
 > {
 >      int status;
 >      link_request linkr;
 > struct timespec ttt,xxx;
 > ttt.tv_sec = 2;
 > ttt.tv_nsec = 0;
 > 
 >      while (1)
 >      {
 >              if ((status=mq_receive (link_rq_mq, (char *)&linkr, sizeof 
 > (linkr), 0)) > 0)
 >              {
 > //nanosleep (&ttt, &xxx);
 >                      status = mq_send (link_rq_mq_out, (char *)&linkr, 
 > sizeof (linkr), 0);
 >              }
 >      }
 >      return 0;
 > }

What are the flags passed to mq_open ? If for example O_NONBLOCK is set,
then the behaviour you observe is normal.

-- 


                                            Gilles Chanteperdrix.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to