[sldev] name of an object?

Dale Glass dale at daleglass.net
Sun Jul 29 04:40:45 PDT 2007


On Sat, Jul 28, 2007 at 02:49:34AM -0400, Able Whitman wrote:
[snip] 
> Now, there's (at least) one problem with this code, particularly if you're
> trying to look up the names of lots of objects. This code suffers from a
> race condition which, unfortunately, is relatively easy to aggravate, and
> using this code as-is will probably not work.

That's just rather ugly.

What I did here is to send a RequestObjectPropertiesFamily message, then
parse the reply. Only problem with that is that there can be only one
handler per message, and the selection manager already takes it. This
can be solved by writing a little function that calls both the selection
manager and my code, and using that as the handler instead.

This is easy enough, should have no race condition, and doesn't rely on
strange things like tricking the selection manager into requesting what
you need.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070729/732fdce6/attachment.pgp


More information about the SLDev mailing list