Eyescale/Equalizer — pull request #46 by dardok (2011-10-26 15:32:40+00:00)
Title: Several bug fixes and code/comment cleanup.

Address race condition whereby read could take more bytes than thought
available (rightfully triggering an assertion failure). Now only take
as many bytes as immediately believed to be available.

Address problems with implementation of work request tracking. Now
uses GCC atomic builtins to ensure consistency of the tracking
variable and "spinwaits" when no WRs are available.

General reformatting and code/comment cleanup...

[ ] May break build
[ ] May break existing applications (see CHANGES.txt)
[x] Bugfix
[ ] New Feature
[x] Cleanup
[x] Optimization
[ ] Documentation