/[Apache-SVN]
ViewVC logotype

Revision 665676


Jump to revision: Previous Next
Author: dreiss
Date: Thu May 1 06:17:36 2008 UTC (16 years, 6 months ago)
Changed paths: 23
Log Message:
Memory-based transport rewrite.

The old implementations of the memory-based transports (TBufferedTransport,
TFramedTransport, and TMemoryBuffer) shared very little code and all worked
a bit differently.  This change unifies them all as subclasses of a single
base (TBufferBase) which handles the fast-path operations (when requests
can be satisfied by the buffer) with inline methods (that will eventually
be made nonvirtual in the template branch) and calls out to pure-virutal
methods to handle full/empty buffers.  All of the buffer-management is now
done in terms of "base and bound" pointers rather than "pos" integers.

These classes were moved to TBufferTransports.{h,cpp}.  The .h is included
in TTransportUtils for backwards compatibility.

Also added a "TShortReadTransport" to assist testing transports.


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc modified , text changed
Directoryincubator/thrift/trunk/contrib/thrift_dump.cpp modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/Makefile.am modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/processor/PeekProcessor.h modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/protocol/TDebugProtocol.h modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/protocol/TJSONProtocol.h modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.h modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TBufferTransports.cpp added
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TBufferTransports.h
(Copied from incubator/thrift/trunk/lib/cpp/src/transport/TTransportUtils.h, r665675)
added , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/transport/THttpClient.cpp modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/transport/THttpClient.h modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TShortReadTransport.h added
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TTransportUtils.cpp modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TTransportUtils.h modified , text changed
Directoryincubator/thrift/trunk/test/Benchmark.cpp modified , text changed
Directoryincubator/thrift/trunk/test/DenseProtoTest.cpp modified , text changed
Directoryincubator/thrift/trunk/test/JSONProtoTest.cpp modified , text changed
Directoryincubator/thrift/trunk/test/Makefile.am modified , text changed
Directoryincubator/thrift/trunk/test/OptionalRequiredTest.cpp modified , text changed
Directoryincubator/thrift/trunk/test/TBufferBaseTest.cpp added
Directoryincubator/thrift/trunk/test/TMemoryBufferTest.cpp modified , text changed
Directoryincubator/thrift/trunk/test/TPipedTransportTest.cpp modified , text changed
Directoryincubator/thrift/trunk/test/ZlibTest.cpp modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26