Changed thread-function wrapping strategy in threaded-buffer example to be potentially more robust. Still needs to be tested.
Fixed compilation errors in threaded-buffer example
Added some explanatory comments.
Tested for thread-safety, fixed bugs, confirmed everything works as expected. No copy-constructor yet.