From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49B6C5E5.3090302@domain.hid> Date: Tue, 10 Mar 2009 20:56:21 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <67b6b3430903091727o4a60a28ay91c7ba35ad7d08ef@domain.hid> <49B634F1.2040101@domain.hid> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] rt_queue_write return 1, with no receiver Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steven Seeger Cc: xenomai@xenomai.org Steven Seeger wrote: >> Yes, the docs are correct, and the code looks sane as well. You may >> want to >> double-check your findings using rt_queue_inquire() before calling >> rt_queue_write(), even if this won't be 100% reliable in case your >> reader is >> polling the queue. > > > Philippe, > > We took your advice and tried rt_queue_inquire(). If we use a timeout on > the read, It seems there are always 3 waiters, which is strange because > we have only one thread reading from the queue. If we remove the timout, > there is either 1 or 2 waiters. It got 0 waiters once and still hung. > Very strange. > /proc/xenomai/registry/native/queues/* will tell you which threads are pending on the queue. > Thanks, > Steven > > -- Philippe.