Subj : pthreads with C++ To : comp.lang.c++,comp.programming.threads From : John Date : Sun Apr 17 2005 01:30 pm I have a member function in a class that is metaprogrammed like the following dinsert::eval(M); This in turn unrolls itself to (at compile time, D is a fixed constant) dinsert::eval(M); dinsert::eval(M); dinsert::eval(M); .... .... dinsert<0>::eval(M); These functions are all independent and I would like them to run on different threads. I tried using openMP but unfortunately, icc (intel's compiler slows it down with threads). I would like to try pthreads. Any ideas on how to parallelize it without creating too much mess? (Like embedding M into a void * etc, and the whole thing into a function..??!@#!@#) Thanks, --j .