From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7601 invoked by alias); 19 Jul 2007 09:53:59 -0000 Received: (qmail 7591 invoked by uid 22791); 19 Jul 2007 09:53:58 -0000 X-Spam-Check-By: sourceware.org Received: from mx2-2.mail.ru (HELO mx2.mail.ru) (194.67.23.122) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Jul 2007 09:53:55 +0000 Received: from [85.195.160.55] (port=49722 helo=[10.0.0.21]) by mx2.mail.ru with asmtp id 1IBShk-0000H2-00; Thu, 19 Jul 2007 13:53:52 +0400 Message-ID: <469F3371.2000204@mail.ru> Date: Thu, 19 Jul 2007 09:53:00 -0000 From: Alexey Shusharin User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: cetoni GmbH - Uwe Kindler , ecos-discuss@sourceware.org References: <469F24AE.9060907@cetoni.de> In-Reply-To: <469F24AE.9060907@cetoni.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Waiting I/O operation X-SW-Source: 2007-07/txt/msg00145.txt.bz2 cetoni GmbH - Uwe Kindler wrote: > In my opinion you should go with the second thread solution. Maybe. But in this variant I have a delay in receiving messages and useless processor working. :-( It seems that it will be better if I donate a memory for the second thread. > I don't know if it is allowed to use flags from within DSRs but I > believe you can not use them and then also a callback solution would not > solve your problem. Your callback would need to wakup a "service thread" > that would signal the flag to the waiting thread - but then you would > also need two threads. Why I can't use flags in DSR? I think, I can't wait in DSR but I'm able to use cyg_flag_setbits() for wake-up thread. And my thread will call cyg_flag_wait() for waiting this and some other flags. Regards, Alexey -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss