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 <[email protected]> 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 > > > >
