On Thu, 28 Jun 2001, Brian Pane wrote:

> I like the concept of registering threads' "interest" in an sms.  But how do
> you handle the need for synchronization in a parent sms?  E.g., if an app
> creates an global sms and then two different threads create sms_block
> instances with the first sms as their parent, the two child sms_block
> instances don't need to do any locking but the parent sms does.  A
> reference count isn't sufficient to determine whether locking is needed
> in the parent; it really needs to know the number of distinct thread
> IDs registered with its children.

I guess a thread that registers its interest in a child SMS is by
definition 'interested' in all ancestors of that SMS...

--Cliff


--------------------------------------------------------------
   Cliff Woolley
   [EMAIL PROTECTED]
   Charlottesville, VA


Reply via email to