Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Setting occ for multithread use

miha's picture

I am using OCE 0.9.1 binaries for MSVC 2010 SP1 for my cad program. I have a function that gets run from 4 different threads in parallel. This function uses BRepAlgoAPI_Fuse & BRepAlgoAPI_Cut that cause data race (or not). I have a few questions:

1. Do I have to recompile the libraries with set MMGT_OPT=0 option?
2. Where do I use Standard::SetReentrant(true)?

Just any tips how this is done will help. ty

Forum supervisor's picture

Dear miha,
Unfortunately Boolean operations still are not thread safe.
Although we are working on it. You are also welcome to develop
a corresponding patch and make a contribution via the Collaborative
portal - http://dev.opencascade.org/index.php?q=home/get_involved.
As you probably know the website dedicated to contributors is
available now: http://dev.opencascade.org.