From: Ruben V. B. <van...@gm...> - 2011-09-21 06:37:57
|
Op 21 sep. 2011 02:58 schreef "K. Frank" <kfr...@gm...> het volgende: > > Hello List! > > I wanted to give some quick feedback. I tried out Ruben's mingw-w64 > personal build that implements std::thread, and it works great. > > I downloaded the 64-bit 4.7.0 version: > > x86_64-w64-mingw32-gcc-4.7.0-stdthread_rubenvb.7z > > unzipped it, and tried it out with some std::thread test programs. > (I am running on 64-bit windows 7 and g++ reports its version as > "g++ (GCC) 4.7.0 20110829 (experimental)".) > > I compiled everything thus: > > g++ -static -std=c++0x -o std_thread_test_xxx std_thread_test_xxx.cpp > > I set the static (per Ruben's instruction) and the std=c++0x flags. > (I didn't try anything fancy -- any optimizations or the like.) > > Everything worked, as far as I can tell. > > My programs test the following features: > > thread creation and joins > mutexes > condition variables > timed mutex waits > timed waits on condition variables > async and passing an exception back to a future > > and I ran a parallel_accumulate algorithm posted by Anthony Williams. > (It needed some minor tweaks to compile with the subset of c++0x I > had when I first experimented it.) > > The mutex and condition-variable tests, in particular, were run with tens > of threads and were designed to create some contention to look for race > conditions and deadlocks. (I also goosed up Williams's parallel_accumulate > to run with fifty threads.) > > The main weakness in my tests is that even though I ran with lots of > threads, I am running on a two-core machine. So I do get two active > threads running concurrently, but the tests are not as aggressive as > they would be if I had more processors. > > (The tests also use some of the other new c++0x features, but mostly > just the convenience stuff and nothing particularly outlandish.) > > So... > > Hats off to Ruben for a great step forward! Thanks for making this > available to us all. The work is really all Kai and JonY! I'm just the messenger :-) Thanks for the rather deep testing, we appreciate it, and the result of course ;-) Ruben > > > Best regards. > > > K. Frank > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Mingw-w64-public mailing list > Min...@li... > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public |