geogram icon indicating copy to clipboard operation
geogram copied to clipboard

Make various geogram functions thread-safe

Open jdumas opened this issue 1 year ago • 11 comments

By "thread-safe" here I mean "being able to call geogram functions concurrently". E.g. being able to run Delaunay triangulation on two meshes in parallel (which can happen when integrating Geogram functions in a node-base application like Blender). This is why having a central scheduler (like OneTBB) helps a lot. Currently a lot of geogram routines use global static variables. Using thread_local instead would help. Some examples:

Ideally this should be tested with ThreadSanitizer by calling Delaunay triangulation on a few meshes in parallel...

jdumas avatar Mar 01 '23 18:03 jdumas