From dev-return-13978-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Thu Mar 24 16:47:37 2005 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 13644 invoked from network); 24 Mar 2005 16:47:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Mar 2005 16:47:37 -0000 Received: (qmail 69182 invoked by uid 500); 24 Mar 2005 16:47:36 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 69132 invoked by uid 500); 24 Mar 2005 16:47:35 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 69119 invoked by uid 99); 24 Mar 2005 16:47:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail118.megamailservers.com (HELO mail118.megamailservers.com) (216.251.36.118) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 24 Mar 2005 08:47:34 -0800 X-Authenticated-User: cktan.nxscientific.com Received: from [192.168.1.3] ([218.111.219.75]) (authenticated bits=0) by mail118.megamailservers.com (8.13.1/8.13.1) with ESMTP id j2OGlK0t002187 for ; Thu, 24 Mar 2005 11:47:25 -0500 Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-Id: <03aad974d4cce334437b00b50066edc2@nxscientific.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: dev@apr.apache.org From: C K Tan Subject: QUESTION: apr_poll / pipe / win32 Date: Fri, 25 Mar 2005 00:45:31 +0800 X-Mailer: Apple Mail (2.619.2) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, In APR 1.1.0, I am using the apr_poll function to wait (blocking) on a bunch of sockets in thread A. At some point, thread B needs to make thread A exit the apr_poll function even though none of the sockets in the pollset is signaled. What's the best way to do it? I tried adding a pipe to the pollset in A, and have B send a byte to make it readable. This works well on unix, but does not work in windows. It seems that waiting on pipe is not implemented for windows. Any suggestions? Thanks, -cktan