On Thu, 18 Mar 2010, Derek Gaston wrote:

> On Mar 18, 2010, at 11:57 AM, Roy Stogner wrote:
>
>> I'd like to instead just "enforce" the current restrictions - set a
>> Threads::_now_multithreaded bool to true at the start of and false at
>> the end of any Threads::parallel_* call, and then do a
>> assert(!Threads::now_multithreaded()) in every Parallel:: call.
>
> This sounds good... as long as it only happens in debug.

The assert, or the assert and the bool both?  I was thinking of
setting the bool even in opt mode, in case any user had a use for it,
on the theory that it's cheap compared to the TBB overhead... but I
wouldn't be using it except in debug/devel modes in the library, and
I'm not sure what, other than assertions, someone else might use it
for.
---
Roy

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to