thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Emmenlauer <ma...@emmenlauer.de>
Subject Re: boost thread vs std::sthread on MSYS2 and/or MinGW64
Date Sun, 09 Apr 2017 17:40:29 GMT

Dear Aki,

great that sounds good! I'll try the tests (are they part of the
standard 'make check' from cmake?).

I feel more confident now already that my build is fine.

All the best,

    Mario



On 09.04.2017 13:35, Aki Sukegawa wrote:
> Hi Mario,
> 
> There are tests for threads:
> https://github.com/apache/thrift/blob/master/lib/cpp/test/concurrency/ThreadFactoryTests.h
> https://github.com/apache/thrift/blob/master/lib/cpp/test/concurrency/ThreadManagerTests.h
> 
> As long as std::thread is correctly implemented on that platform, I'm not
> aware of any reason it shouldn't work.
> 
> Cheers,
> Aki
> 
> On Sun, Apr 9, 2017 at 6:24 PM Mario Emmenlauer <mario@emmenlauer.de> wrote:
> 
>>
>> Does anyone know if thrift can work with gcc std::thread on Windows?
>>
>> I have successfully build it and run the test on MSYS2 with gcc 6.3.0
>> with -DWITH_STDTHREADS=ON. Do the tests check for threading too?
>>
>> All the best,
>>
>>    Mario
>>
>>
>>
>>
>> On 02.04.2017 17:07, Mario Emmenlauer wrote:
>>>
>>> Dear All,
>>>
>>> in the past I've found the one or other recommendation on the web that
>>> thrift should be built with boost threads instead of std::thread on
>>> MSYS2 . One of these sources was the README-MSYS2.md. But I have a hard
>>> time to find a solid statement saying "std::threads can *not* be used",
>>> so its more a hunch than a fact.
>>>
>>> I was able to build thrift with std::thread enabled on MSYS2 (which is
>>> currently using MinGW64 gcc 6.3 compiler). Can someone help me out, are
>>> problems to be expected from this combination? Should I indeed prefer
>>> boost threads? I'm mostly interested in a C++ thrift client, not a
>> server.
>>>
>>> My application is already using gcc std::threads, and I'd like to avoid
>>> the mix and match. Or is there no reason to be concerned of mixing and
>>> matching threading with boost and std::thread?
>>>
>>> All the best,
>>>
>>>     Mario Emmenlauer



Mime
View raw message