
So I was looking for basic usage examples for boost::thread and boost::mutex classes and initially I couldn't find any because I was using wrong search keywords. In the end I figured out how to use boost::thread and boost::mutex classes in my application hard way by reading Boost documentation without relying on any examples. But afterwards I did find a very good article on this topic with many simple examples: The Boost.Threads Library on Dr.Dobb's. So I'm posting this link here for google. It is in top 10 hits for some relevant keywords but it is not for others (for example for boost thread mutex tutorial) and this is why I missed it initially. If my blog post helps any Boost.Threads newbie to get started then I would consider time spent writing this post to be not wasted.
Thanks.
ReplyDeleteNot wasted at all! Ta!
ReplyDeleteThanks, your time was definitely not wasted and in fact has helped save time for at least one poor sap working his way through the Boost.Thread documentation.
ReplyDeleteThanks! This page served its purpose perfectly for me.
ReplyDeleteThanks! Wasnt a waste of time.
ReplyDeleteThanks :)
ReplyDeleteLooks like you might have helped me a lot there too mate. Thanks a lot :D
ReplyDeleteThanks !
ReplyDeleteThanks! I had been searching for stuff on C++ threads and hadn't found a good article or tutorial on them until I typed in "C++ threads boost tutorial" and got your page and followed the link.
ReplyDeleteThanks! not wasted time ;)
ReplyDeleteThanks! This is a good place to drop by when searching for Boost.Thread tutorial.
ReplyDeleteThank you very much. Your link is very useful:)
ReplyDeleteThanks a lot for your link though the article seems a bit obsolete now.
ReplyDeleteI also found a good article here:
http://blog.emptycrate.com/node/277
Cheers
Thanks. This was exactly what I was looking for.
ReplyDeletePitty the Boost.org people can't write examples on their own. ;o)
Thanks alot
ReplyDeleteI got the same feeling with you while looking for a pratical, handy guide of boost thread, now I found this tutorial. So, thanks.
ReplyDeleteAnother thanks :D
ReplyDeleteThanks for the tutorial. Something human readable, win!
ReplyDeleteThank you very much.
ReplyDeleteMe too. (-:
ReplyDeleteThanks a lot.
Thanks for this! Definitely quite understandable. There's another quite good tutorial here:
ReplyDeletehttp://paulbridger.net/multithreading_tutorial
The problem with that one is that there're no COMPLETE examples - however, it does explain the concepts more thoroughly. :)
Also, be sure to check out the "What's new in Boost Threads by Dr.Dobb's:
http://www.ddj.com/cpp/211600441
Haven't read it yet, but apparently there's stuff about a newer version of the library.
Happy coding people! :)
thanks ... i feel ya ... i like to learn thru examples
ReplyDeleteThank you!!
ReplyDeleteThanks mate, another quick piece of info on using Boost threads on a class is: http://ubuntuforums.org/showpost.php?p=5392618&postcount=4
ReplyDeleteexplains how to use to make a class similar to if you inherit from Thread in Java.
Thanks for the link. I was going cross-eyed reading the Boost::Thread docs and it turns out I only needed two extra lines in my code. :^)
ReplyDeleteIt's still the gift that keeps giving.
ReplyDeleteAnd btw, if any readers are C++ newbs like me, and have trouble with the example code, the keys to learn are "Initialization Lists"
http://www.cprogramming.com/tutorial/initialization-lists-c++.html
and "functors" or "Thread Functors"
http://developer.vrjuggler.org/docs/vapor/2.0/programmer.guide/programmer.guide/ch05s02.html
Thanks a lot !
ReplyDeletethanks!!
ReplyDeleteWhoever is responsible for the Boost threads documentation should be ashamed that this blog is the number one hit for boost thread tutorial, and there is nothing on the web for it from boost itself... But thank you blogger!
ReplyDeleteThank you !
ReplyDeleteThanks! when i searched today you were the number 1 google hit for "boost thread tutorial"
ReplyDeletethanks, you pointed out something i've been frustrated by with boost documentation for years and you pointed to the same example i had in mind, CPAN/POD
ReplyDeletethanks :p
ReplyDeleteIt looks like google like your article it's was my 3rd result !
Still working after 2.5 years! Thanks Ilya!
ReplyDeleteMany thanks
ReplyDeletethis is exactly what I am looking for!
youuuuuuuu rock. made my search quite easy
ReplyDeleteyeah it helped! I never write comments on blog posts, but this one deserves it! Thanks!
ReplyDeleteStill not wasted! :)
ReplyDeletethanks!
ReplyDeleteThank you very much, i found this post via google, so it was worth (IMO).
ReplyDeletecheers
Thanks a lot. Saved me hours of time reading docs.
ReplyDeleteThanks :-)
ReplyDeleteThanks!
ReplyDeleteStill paying off. Thanks!
ReplyDeleteGood stuff mate, and thankyou very much for the Dr Dobbs link. That is exactly what I was looking for.
ReplyDelete+1, your idea worked. Came from Google.
ReplyDeleteThanks a lot, still working!!
ReplyDeleteAs everyone else says - thanks! :P
ReplyDeleteThank you, I was really strugling using the Win32 API for multi-threading but now I use boost which is so much easier once you read the documentation!
ReplyDeletethanks
ReplyDeleteStill kickin; !!!
ReplyDeleteGood work Sir!
Thanks bro!
ReplyDeleteUsefull post ... thanks man!
ReplyDeleteMarch 2012 and still useful.
ReplyDeleteThanks!
July/2012...
ReplyDelete... and still usefull.
Great! Thank you :-)
ReplyDelete6 years after... thanks ;)
ReplyDelete