From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9618 invoked by alias); 11 Oct 2012 08:51:32 -0000 Received: (qmail 9578 invoked by uid 22791); 11 Oct 2012 08:51:27 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-vb0-f49.google.com (HELO mail-vb0-f49.google.com) (209.85.212.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Oct 2012 08:51:22 +0000 Received: by mail-vb0-f49.google.com with SMTP id fo1so1527182vbb.36 for ; Thu, 11 Oct 2012 01:51:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=iRU653w18zicOTZf0nrFL5aMNg1kYRDsBC4PfGZFiIE=; b=A9rRm1E+IMHr3hGmx2MQzAO93uNvbWiiUzLpfv8zYsGDtDBq4iKzZRnHNA3fkMWtuK 5NQQPcnarkcLne2RgaT/vEGMK9S6JreCWVu5752ApXvHaqtBTQIBgybRXK8dGabL5cQc hJgeNWerMpGK475CHhjZJzRnBVHYHeekcgGFsEULoFBEyLnZqdpGf5+y3dHl2WICXSA5 hWLZRO/B1erFQKSM3mtBGBmVEITABjpCdJ8ivE32KGWXiWfauRQ9iXl6BBp+WDGxyvFI xj1cflUj92I1OjSBH5Ol+MmT3R9Cl2Q506VRqN+I6kDCiLi3OpF664SYep0g5cOwGqiC WYfA== MIME-Version: 1.0 Received: by 10.52.38.40 with SMTP id d8mr68044vdk.67.1349945481122; Thu, 11 Oct 2012 01:51:21 -0700 (PDT) Received: by 10.58.76.233 with HTTP; Thu, 11 Oct 2012 01:51:21 -0700 (PDT) Date: Thu, 11 Oct 2012 08:51:00 -0000 Message-ID: From: Allan Nielsen To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQm2D7fA52KDqTWPBp4J6aRp9CZR27W3gObC+cn2Tqsxl+s3c0SG2MCoNwcY8eVLJ2eVl0Jn 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] Select break? X-SW-Source: 2012-10/txt/msg00008.txt.bz2 Hi, Is there any way I can wakeup a select call from an other thread? I'm using eCos threads (not posix threads), so sending a signal using pthread_kill does not seem to be an option. I would have guessed that I could create a file descriptor pair using pipe, or socketpair, include this in the select list, and write some dummy data. But since eCos does not implement either pipe or socketpair, this does not seem to be an option either. I have tried to use the cyg_selrecord and the cyg_selwakeup functions, but they only cause the select function to poll the file descriptors again. So how can this be done using eCos threads? Best regards Allan W. Nielsen -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss