[reSIProcate] about thread safe of repro!

Scott Godin slgodin at icescape.com
Mon Apr 9 08:27:46 CDT 2007


Assuming the Berkley DB calls are thread safe, then the UserStore access
should be OK, since we do not locally cache anything.

On the other hand we definitely have an issue with the protection of the
cached items from:
AclStore, RouteStore, and ConfigStore (recent revisions only).

I think, the quick and dirty way to fix this is to protect the cached
record access with a RWMutex.  At some time in the future we may want to
have a DBThread with FIFO message queue access.

Scott

> -----Original Message-----
> From: resiprocate-devel-bounces at list.resiprocate.org
> [mailto:resiprocate-devel-bounces at list.resiprocate.org] On Behalf Of
> hongsion
> Sent: Saturday, April 07, 2007 4:48 AM
> To: resiprocate-devel at list.resiprocate.org
> Subject: [reSIProcate] about thread safe of repro!
> 
> Hi all,
> 	I found in repro, both Proxy thread and WebAdmin thread will
> access
> Store. And in Store, seems there is not any locks. Is it thread safe?
> 
> Regards,
> /hongsion
> 
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel




More information about the resiprocate-devel mailing list