Subject: CGAL users discussion list
List archive
- From: Marc Glisse <>
- To: giannis assiouras <>
- Cc:
- Subject: Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash
- Date: Wed, 2 May 2012 13:52:59 +0200 (CEST)
On Wed, 2 May 2012, giannis assiouras wrote:
Thanks for your answer. I am also considering the alternative of making
copies of all the objects that may be accessed by several threads.. However,
since all copies of an object share a common representation object storing
the data associated with a kernel object how this solution could be thread
safe with the current implementation?
You need to construct new objects instead of copying.
For Gmpq:
Gmpq b=a.mpq();
For a point, take its x, y and z coordinates, "copy" them by the method above, and construct a new point from the 3 coordinates. With Lazy_*, which you get with Epeck, you may need to use .exact() to get the real representation.
Are you sure the filtered version of Simple_cartesian<mpq_class> is not good enough for you?
--
Marc Glisse
- [cgal-discuss] Re: CGAL+GMP and multithreading crash, Marc Glisse, 05/01/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, Philipp Moeller, 05/01/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, Marc Glisse, 05/01/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, giannis assiouras, 05/02/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, Marc Glisse, 05/02/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, giannis assiouras, 05/04/2012
- [cgal-discuss] Re: CGAL+GMP and multithreading crash, antoine, 05/10/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, giannis assiouras, 05/02/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, Marc Glisse, 05/01/2012
- Re: [cgal-discuss] Re: CGAL+GMP and multithreading crash, Philipp Moeller, 05/01/2012
Archive powered by MHonArc 2.6.16.