Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Is Kd_tree construction thread safe?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Is Kd_tree construction thread safe?


Chronological Thread 
  • From: Marc Glisse <>
  • To:
  • Subject: Re: [cgal-discuss] Is Kd_tree construction thread safe?
  • Date: Thu, 8 Sep 2016 20:15:28 +0200 (CEST)

On Thu, 8 Sep 2016, chrism wrote:

Alright, good to know.

Is there any way to insert the points into the kD tree in a multi-threaded
fashion?

You can always protect each insertion with a lock...
What are you trying to achieve exactly? It sounds like it would be easier to push your points to some thread-safe container during the multi-threaded part of your program, then have a single-threaded section where you copy the container to the kd_tree.

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page