From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127379 invoked by alias); 29 May 2016 17:20:35 -0000 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 Received: (qmail 127370 invoked by uid 89); 29 May 2016 17:20:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:ecos-di, burn, H*u:1.0.2, H*UA:1.0.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 29 May 2016 17:20:24 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b74Nw-0005HR-Ap for ecos-discuss@ecos.sourceware.org; Sun, 29 May 2016 19:20:20 +0200 Received: from 97-91-88-140.dhcp.roch.mn.charter.com ([97.91.88.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 May 2016 19:20:20 +0200 Received: from grant.b.edwards by 97-91-88-140.dhcp.roch.mn.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 May 2016 19:20:20 +0200 To: ecos-discuss@ecos.sourceware.org From: Grant Edwards Date: Sun, 29 May 2016 17:20:00 -0000 Message-ID: References: <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C5069C@exchange> User-Agent: slrn/1.0.2 (Linux) X-IsSubscribed: yes Subject: [ECOS] Re: timed wait for cyg_io_read X-SW-Source: 2016-05/txt/msg00005.txt.bz2 On 2016-05-27, Michael W. Ellis wrote: > Is there a way to do a timed wait for cyg_io_read? FAIK, there never used to be any "built-in" way to do that. I ended up adding timeout settings to my io drivers. > I have a thread that is blocking on cyg_io_read and I wish to signal > the thread to exit in an orderly manner (using an event flag). I > know that I can make cyg_io_read non-blocking and poll cyg_io_read > and cyg_flag_poll but this would burn a lot of cycles doing nothing. I think there used to be a way to explicity wakeup a thread that was blocked on something, but I don't remember the details... -- Grant -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss