Dear Bryan, Mark, first of all sorry for the two threads, I copied the whole subject, without the Re: (...)
Yes I am using SimpleServer and did not see (till now) that there are such great other implementations. With ThreadPoolServer my application works fine. Thank you very much for your help! 2011/4/8 Mark Slee <[email protected]> > Which server implementation are you using? It sounds like you are using the > TSimpleServer. We have a number of threaded implementations available. > > ~/local/thrift-apache/trunk/lib/cpp/src/server $ls > TNonblockingServer.cpp TSimpleServer.cpp TThreadPoolServer.cpp > TNonblockingServer.h TSimpleServer.h TThreadPoolServer.h > TServer.cpp TThreadedServer.cpp > TServer.h TThreadedServer.h > > You probably want to go with a TThreadPoolServer or TThreadedServer. It > should be very straightforward to swap those out for the TSimpleServer, it > won't require changing your application implementation code (though you'll > need to ensure that any shared data structures are thread-safe). > > Cheers, > mcslee > > -----Original Message----- > From: KK [mailto:[email protected]] > Sent: Friday, April 08, 2011 10:30 AM > To: user > Subject: Question about multi client ability on server side > > Hi Brian, > > you mean that I have to implement multi client support for myself? > > I think cpp supports threads :) I hope I can use OpenMP in this project! >
