From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id BC9F54696C3 for ; Thu, 23 Apr 2020 12:26:02 +0300 (MSK) Received: by mail-lj1-f194.google.com with SMTP id a21so2582631ljj.11 for ; Thu, 23 Apr 2020 02:26:02 -0700 (PDT) Date: Thu, 23 Apr 2020 12:26:00 +0300 From: Cyrill Gorcunov Message-ID: <20200423092600.GC3072@uranus> References: <41a1decbbad25ee4b080052e64f65d1c4206c426.1587490798.git.lvasiliev@tarantool.org> <20200422142046.GA3072@uranus> <1ba0a66e-e252-99d7-5eb9-b5d5fbe8f95e@tarantool.org> <20200422153606.GB3072@uranus> <77367e87-823f-7ff1-851e-d36043ca799a@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77367e87-823f-7ff1-851e-d36043ca799a@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH] Add a check whether glibc is used List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: lvasiliev Cc: tarantool-patches@dev.tarantool.org On Thu, Apr 23, 2020 at 12:10:25PM +0300, lvasiliev wrote: > > commit 3e21641638075fe0b8ad909a6a3ce0b064695906 > Author: Leonid Vasiliev > Date: Tue Apr 21 19:16:17 2020 +0300 > > Add a check whether glibc is used > > The cbus hang test uses glibc pthread mutex implementation details. > The reason why mutex implementation details is used: > "For the bug reproducing the canceled thread must be canceled > during processing cpipe_flush_cb. We need to synchronize > the main thread and the canceled worker thread for that. > So, thread synchronization has been realized by means of > endpoint's mutex internal field(__data.__lock)." > Therefore, it should not compile in case of using another library. Thank you!