Hello Carsten,

Am 05.02.2010 um 20:34 schrieb Carsten Neumann:

>       Hello Thomas,
> 
> Thomas Kulessa wrote:
>> 
>> which should start the osc thread with aspect 1 and then call
>> 
>> osc_thread->getAspect()
>> 
>> it returns 0.
> 
> yes, getAspect() is actually a static member function of Thread that 
> returns the aspect of the currently running thread and since you call it 
> from the 'main' thread you get aspect 0. Try calling it from your 
> thread_func, it should return 1 there.
> 

thanks for your reply. Stupid me. So since there is no function to get the 
aspect of a thread, besides tfrom he current, I assume it is also not possible 
to sync both changelists from one thread? 
Since thats what I tried to do, to avoid that changes get lost or will applied 
on objects which are already outdated I wanted to sync both changelists/aspects 
from one thread. 
I intended to do blocking IO in the OSC server thread. So this is probably not 
possible because the changelist updates will occur to infrequent?

> 
> take a look at Doc/tutorial/progs/13multithreading2.cpp, it uses a 
> thread on aspect 1 to spin an object.

I remember that 13multithreading2.cpp as well as the tutorial both work on one 
aspect!?


cheers,

thomas

Thomas Kuleßa
mail: tkule...@yahoo.de, aim: tkuul




------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to