[sldev] Re: Threading in Second Life

Nicholaz Beresford nicholaz at blueflash.cc
Sun Aug 12 02:36:27 PDT 2007



Michael Miller wrote:
  > I get the feeling I am taking a VERY wrong approach in this. Is there
> a 'clean' way I can deal with this ensuring that my code doesn't crash
> the SL client(due to concurrent access of variables)? Would using the
> LLWorkerThread class help? If so, how do I do this?

I've only seen the threads in passing, but it was my impression that
they have these worker classes which are collections of threads and
these through internal semaphores are blocked during certain states
of the main loop.

 From what I've seen at least the threading seems to be pretty
rudimental.  It's more like a thread is a work function that is
called for a slice of cpu every so often and needs to persist
it's states through multiple calls.


Nick

Second Life from the inside out:
http://nicholaz-beresford.blogspot.com/



More information about the SLDev mailing list