well the docs on boost's thread lib isn't as good as the asio lib... And after reading this: http://www.boost.org/doc/libs/1_44_0/doc/html/thread/synchronization.html I got the main idea but there is no codes and examples, that I could find, using that. I would be happy for a link or explanations on how using that..
These two tutorials might help as they have code examples.