Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL+GMP and multithreading crash

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL+GMP and multithreading crash


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL+GMP and multithreading crash
  • Date: Wed, 24 Jun 2009 18:12:50 +0200
  • Organization: INRIA

torchi borchi wrote:
i followed your suggestion and tried this:

typedef CGAL::Gmpq RT;
typedef CGAL::Simple_cartesian<RT> K;

but it still crashes. is Gmpq using reference counting?

Yes, it uses the same thread-unsafe mechanism.

i need exact constructions.

Try mpq_class instead of Gmpq ?
Or Quotient<MP_Float>, but that can be much slower.

Otherwise, someone needs to bite the bullet and fix
the reference counting mechanism (in <CGAL/Handle_for.h>).

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page