From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C2DF8F4.6040900@domain.hid> Date: Fri, 02 Jul 2010 16:34:28 +0200 From: Wolfgang Mauerer MIME-Version: 1.0 References: <1278071353-13836-1-git-send-email-wolfgang.mauerer@domain.hid> <1278071353-13836-8-git-send-email-wolfgang.mauerer@domain.hid> <4C2DF5D6.3030607@domain.hid> <4C2DF732.30906@domain.hid> In-Reply-To: <4C2DF732.30906@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [PATCH 7/7] posix: Add some example code for CLOCK_HOST_REALTIME List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: "Kiszka, Jan" , "xenomai@xenomai.org" Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Wolfgang Mauerer wrote: >>> ... and for reading the contents of the hostrt data. >>> >> Just realized: Please also update clocktest. Should already work with >> the new clock ID, but requires a cosmetic output patch. > > Yes, I thought about that. Maybe even if clocktest uses the new > clock_id, we could drop the example? > > I do not think it is a good idea to provide as an example code which > uses the internals of the implementation (though it makes sense to use > the implementation internals in the clocktest code). And if we remove > that, only clock_gettime(CLOCK_HOST_REALTIME) remains, which does not > seem to need an example. > I would not keep it as an example, but as a test case for checking that nothing is wrong with the data on the shared page. Which does not fit quite well into clocktest. Although I have no problem with just omitting the stuff if reading the (internal) content of the data page is deemed inappropriate. Regards, Wolfgang