Add write buffer queue for non-blocking write
authorZhenhua Zhang <zhenhua.zhang@intel.com>
Fri, 26 Feb 2010 09:56:31 +0000 (17:56 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 26 Feb 2010 22:07:33 +0000 (16:07 -0600)
commit534898f164dc531f4e9ce317fa537eecd9b8f1cf
treee913578423a8300003885d5d409720364cf0779c
parente96293d5bb56db12d887bcbe4c96d9908d455b2b
Add write buffer queue for non-blocking write

The head of the queue is the data to be written, the tail is the
free buffer to cache data into.

If the tail of queue is full, allocate a new free buffer and
append it at the tail.
gatchat/gatserver.c