From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49F9B123.7080203@domain.hid> Date: Thu, 30 Apr 2009 07:09:39 -0700 From: Thomas Lockhart MIME-Version: 1.0 References: <200904301508.29432@domain.hid> <200904301509.13094@domain.hid> <200904301510.8382@domain.hid> <200904301511.15875@domain.hid> <200904301512.9035@domain.hid> <200904301513.12716@domain.hid> <200904301514.6099@domain.hid> <200904301515.16182@domain.hid> <200904301516.696@domain.hid> In-Reply-To: <200904301516.696@domain.hid> Content-Type: multipart/alternative; boundary="------------030704070500090903080008" Subject: Re: [Xenomai-help] rtdm_event_timedwait returns -EINTR List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Petr Cervenka Cc: xenomai-help This is a multi-part message in MIME format. --------------030704070500090903080008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Hello, I have a problem with rtdm_event_timedwait() function. It > sometimes ends prematurely with -EINTR error code. It depends on > special circumstances (CPU load, resizing console window in X, ...). In other areas of Xenomai when one sees a EINTR return one should reenter the original call. Like this (?): do { err = rt_task_wait_period(...) } while (err != -EINTR); hth - Tom -- Thomas Lockhart Supervisor, Distributed and Real-time Group Instrument Software and Science Data Systems Caltech/JPL --------------030704070500090903080008 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > Hello, I have a problem with rtdm_event_timedwait() function. It
> sometimes ends prematurely with -EINTR error code. It depends on
> special circumstances (CPU load, resizing console window in X, ...).


In other areas of Xenomai when one sees a EINTR return one should reenter the original call. Like this (?):

do {
  err = rt_task_wait_period(...)
} while (err != -EINTR);

hth

                               - Tom

--
Thomas Lockhart
Supervisor, Distributed and Real-time Group
Instrument Software and Science Data Systems
Caltech/JPL

--------------030704070500090903080008--