apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: Possible race condition in pools WAS: RE: Thoughts on locks
Date Thu, 28 Jun 2001 18:27:02 GMT
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
   cliffwoolley@yahoo.com
   Charlottesville, VA



Mime
View raw message