Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Marc Glisse <>
  • To:
  • Cc:
  • Subject: [cgal-discuss] Re: CGAL+GMP and multithreading crash
  • Date: Tue, 1 May 2012 20:00:52 +0200 (CEST)

On Tue, 1 May 2012,

wrote:

Many thanks for your response. Could you give me some quick instructions if I go and fix the reference counting mechanism e.g. pointer to some existing prototype, what support is already there and what needs to be done.

Replacing unsigned int with std::atomic_uint for the member "count" in CGAL/Handle_for.h would go a long way for Gmpq. You can try similar things in other Handle* files, Handle.h looks like it might be ok with a simple int -> std::atomic_int, Handle_with_policy would be hard. Sorry, if it was trivial it probably would have been done already.

Also, please don't send personal answers, always reply to the list.

--
Marc Glisse



Archive powered by MHonArc 2.6.16.

Top of Page