< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] about thread safe of repro!


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@xxxxxxxxxxxxxxxxxxxx
> [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of
> hongsion
> Sent: Saturday, April 07, 2007 4:48 AM
> To: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxx
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel