Subject: CGAL users discussion list
List archive
- From: Ioannis <>
- To:
- Subject: Re: Re: [cgal-discuss] CGAL+GMP and multithreading crash
- Date: Tue, 1 May 2012 07:32:48 -0700 (PDT)
Hello,
>It is not possible to make reference-counting thread-safe without slowing
>down single-threaded applications, so this hasn't been done yet. It is
>safe to use different Gmpq in different threads (as opposed to Gmpzf which
>may only be used in a single thread), but not to share one between
>threads.
>You could try to use a type that does not use reference counting
>(mpq_class (from gmpxx.h) instead of Gmpq).
I am using CCAL 4.0 with with Exact_predicates_exact_constructions kernel
and my multithreaded code fails occasionally.
Is the thread unsafe reference counting still an issue in the new version?
The same problem I have with multithreading and the Cartesian<Cgal::Gmpq>
kernel.
Is the Simple_cartesian<mpq_class> the only alternative solution and how
slow could that be comparing to the other kernels?
I saw in an older post that some filtering could speed it up but I am not
sure what does that mean in this context and how can I use it in my code.
Best Regards
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-GMP-and-multithreading-crash-tp952453p4600861.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- Re: Re: [cgal-discuss] CGAL+GMP and multithreading crash, Ioannis, 05/01/2012
- Re: Re: [cgal-discuss] CGAL+GMP and multithreading crash, Marc Glisse, 05/01/2012
Archive powered by MHonArc 2.6.16.