You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Paul Caswell <pa...@hitachivantara.com> on 2019/11/15 10:58:00 UTC
C++ Upgrade from Thrift 0.11.0 to 0.13.0
Hello,
We have integrated Thrift version 0.11.0 into our product and are now looking to upgrade to 0.13.0.
Here's the environment:
Windows 2010, Visual Studio 2017, 64bit, Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27034 for x64
Our product uses a threading abstraction derived from boost::thread.
Our server is a TThreadedServer where the thread factory argument is a specialization apache::thrift::concurrency::ThreadFactory.
In version 0.13.0 the threading the server is final and cannot be extended. This is also true for apache::thrift::concurrency::Thread. I am therefore struggling to see how to port our codebase to 0.13.0. Can someone give me a steer? I'm assuming I'll need to create a specialised version of TThreadedServer or TServerFramework that takes a factory that creates boost threads. Have I got this right?
Any help much appreciated.
Paul