Thrift: Changing TFileTransport to use the same buffer-swap mechanism that pillar...
authorJames Wang <jwang@apache.org>
Wed, 14 Feb 2007 23:22:08 +0000 (23:22 +0000)
committerJames Wang <jwang@apache.org>
Wed, 14 Feb 2007 23:22:08 +0000 (23:22 +0000)
commita0c92417a0eedcb65361d4e8f0d9ae679554c715
tree5861fdac65127220b6b227e5402180f91f458388
parentafc76543cd50b44560f864bd4f871de62cea9d7b
Thrift: Changing TFileTransport to use the same buffer-swap mechanism that pillar does

Reviewed by: aditya

Tested with thrift test class

Notes: TFileTransport used to use a circular buffer.  Changed this to use two large buffers, one for reading and one for writing, that are swapped whenever the writer thread finishes with the last write.

Also changed a few default constants -- force_flush timeout is now 3 sec, default buffer size is 10000 entries

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664997 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TFileTransport.cpp
lib/cpp/src/transport/TFileTransport.h