[Tarantool-patches] [PATCH] Add a check whether glibc is used

lvasiliev lvasiliev at tarantool.org
Wed Apr 22 17:52:18 MSK 2020


Hi!

On 22.04.2020 17:20, Cyrill Gorcunov wrote:
> On Tue, Apr 21, 2020 at 08:44:57PM +0300, Leonid Vasiliev wrote:
>> The cbus hang test uses glibc pthread mutex implementation details.
>> Therefore, it should not compile in case of using another library.
>> ---
>> Now the compilation for alpine 3.5 is broken.
> 
> Wait, I don't understand. We'are using tt_pthread in core code
> as well. How tarantool compiles on it then?
The cbus hang test uses glibc pthread mutex implementation details
(internal fields of mutex).
Comment from code of cbus_hang test:
" We want to cancel canceled thread in the moment of cpipe_flush_cb
  will be processing.
  A Linux specific dirty hack will be used for reproduce the bug.
  We need to synchronize the main thread and the canceled worker thread.
  So, do it using the endpoint's mutex internal field(__data.__lock)."
"A Linux specific" - a glibc specific.

> 


More information about the Tarantool-patches mailing list