From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10949 invoked by alias); 11 Oct 2012 13:14:53 -0000 Received: (qmail 10752 invoked by uid 22791); 11 Oct 2012 13:14:49 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Oct 2012 13:14:43 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TMIb7-0008QJ-18 for ecos-discuss@sources.redhat.com; Thu, 11 Oct 2012 15:14:45 +0200 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Oct 2012 15:14:45 +0200 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Oct 2012 15:14:45 +0200 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Thu, 11 Oct 2012 13:14:00 -0000 Message-ID: References: User-Agent: slrn/pre1.0.0-18 (Linux) 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: Select break? X-SW-Source: 2012-10/txt/msg00009.txt.bz2 On 2012-10-11, Allan Nielsen wrote: > Is there any way I can wakeup a select call from an other thread? You used to be able to call cyg_select_abort(), which would wake up any thread that was blocking in cyg_select_with_abort() -- which had the same semantics as select() except it could be aborted. It was a great feature that I found exactly fit my needs. But, that feature disappeared. Now the only practical solution I've found is to always use a timeout when you call select() and just poll the abort condition. No, it's not very elegent, it wastes CPU, and in introduces a lot of latency. -- Grant Edwards grant.b.edwards Yow! Give them RADAR-GUIDED at SKEE-BALL LANES and gmail.com VELVEETA BURRITOS!! -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss