Hi,

On Thu, 2003-10-16 at 20:29, Christoph Fuenfzig wrote:
> Hi,
> 
> is it possible to change all aspects at once, e.g. for prototype 
> modification.
> 
> Currently I use
> GeometryPtr protoGeometry = 
> GeometryPtr::dcast(Geometry::getClassType().getPrototype());
> beginEditCP(protoGeometry);
> protoGeometry->setDlistCache(false);
> endEditCP(protoGeometry);
> Geometry::getClassType().setPrototype(protoGeometry);
> 
> But that as usual just changes the aspect of the calling thread, right? 

yes

> Is it possible to change all aspects at once,
> in a single threaded code section?

the main reason for handling prototype changes as every thing else
are clusters. In order to work in this environment they have to walk
through the changelist mechanism. Ok now comes a kind of a standard 
answer I really hate giving because I did it to often lately ;-(, as it
is planned to have certain flags regarding the multithreading visibility
and to have some sharing for external data I will take this feature into
account and look at it.
But in general I really do not like these kind of workaround as it
might spread the needed changes for going to clusters into the
application. One nice thing about the current design is that if the
app is written correctly it automatically scales to clusters. I see
that it sometimes might be a pain if you know you work only locally. 
But what I see in this case is that it introduces some kind of order 
dependence in the calls to applying the change list and creating new
objects. And furthermore I'm afraid it is broken in the current cluster
implementation anyway so we will have to have a look at least for this
reason ;-) 

regards,
  gerrit




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to