← Back to team overview

yade-dev team mailing list archive

Re: multicore speed / threads issues

 

(sorry, sending to the list again)

> I see, how about using this one, to avoid global locking:
> 
> http://www.chaoticmind.net/~hcb/projects/boost.atomic/
> 

If you talk about InteractionContainer::drawloopmutex, then

1. you can always shut down the 3d view to get rid of it;

2. it is not related to atomicity, right? We're modifying container from
one thread while another thread loops over it, which invalidates the
iterator. (Performance is more important, please no hacks to fix this).

A good and easy optimization might be to remove the mutex altogether
when compiling without OpenGL, to avoid uselessly checking its status
when interaction is added/deleted.

Cheers, v.






Follow ups

References