Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 78AF6200C4D for ; Wed, 5 Apr 2017 14:16:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 769AB160B94; Wed, 5 Apr 2017 12:16:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB054160B91 for ; Wed, 5 Apr 2017 14:16:26 +0200 (CEST) Received: (qmail 56932 invoked by uid 500); 5 Apr 2017 12:16:25 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 56922 invoked by uid 99); 5 Apr 2017 12:16:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2017 12:16:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 86D88C061E for ; Wed, 5 Apr 2017 12:16:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.144 X-Spam-Level: X-Spam-Status: No, score=-2.144 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 0gmdkdzi078k for ; Wed, 5 Apr 2017 12:16:25 +0000 (UTC) Received: from resqmta-po-06v.sys.comcast.net (resqmta-po-06v.sys.comcast.net [96.114.154.165]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5F2E55F2FE for ; Wed, 5 Apr 2017 12:16:24 +0000 (UTC) Received: from resomta-po-20v.sys.comcast.net ([96.114.154.244]) by resqmta-po-06v.sys.comcast.net with SMTP id vjqbcYhBUbempvjrKc4Nt8; Wed, 05 Apr 2017 12:16:22 +0000 Received: from [192.168.199.10] ([69.251.90.98]) by resomta-po-20v.sys.comcast.net with SMTP id vjrJcIL7CZLS3vjrKc4IX0; Wed, 05 Apr 2017 12:16:22 +0000 From: Jim Jagielski Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: No timed lock on MacOS Date: Wed, 5 Apr 2017 08:16:21 -0400 References: <1DDDDE68-F525-4B2B-96F3-108D70A4B322@apache.org> To: APR Developer List In-Reply-To: <1DDDDE68-F525-4B2B-96F3-108D70A4B322@apache.org> Message-Id: X-Mailer: Apple Mail (2.3273) X-CMAE-Envelope: MS4wfLYm/2wRtQBidzeI11GLH/4sLzAEjXgmTOc8J92fr7FYS679dVYfRKLEh3ktUHvnvfTsLx5upx+3H1hAo310OqyAbvxEpE0zOlZE1dKfk41a/BbUjfMm UoTFcMV26iorOu+VKHDXK3aJdWrEHJ5b8WXEEGwtUWDIt31/s3sSnY1u archived-at: Wed, 05 Apr 2017 12:16:27 -0000 Hmmm.... Looking over the timed stuff, it seems that semtimedop() is used incorrectly. For both pthread_mutex_timedlock() and sem_timedwait(), the timeout variable is the actual wallclock time that the wait expires (eg: now+5mins). But, from what I can read about semtimedop(), its timeout really is a timeout (5mins). But it seems that we use it as if it was wall-clock time, which is WAY wrong... Can someone check to see what exactly the timeout value is for semtimedop()? Is it a delta or a wall-clock?