what is WAReadWriteLock used for?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

what is WAReadWriteLock used for?

Philippe Marschall
Hi

I just had a look at WAKom >> #process: and I don't see a place where
WAReadWriteLock is used for anything else but reading. So it should
never do anything.

Am I missing something or can it be removed?

Cheers
Philippe
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: what is WAReadWriteLock used for?

Avi Bryant-2
On 2/25/07, Philippe Marschall <[hidden email]> wrote:
> Hi
>
> I just had a look at WAKom >> #process: and I don't see a place where
> WAReadWriteLock is used for anything else but reading. So it should
> never do anything.
>
> Am I missing something or can it be removed?

The idea is that you use #write: when you have a block that should not
ever happen during a Seaside request - image snapshots are a good
example of this.

That said, I've stopped using it because it seems to be buggy - I was
getting blocked on #write: even when no processes were inside #read:,
which shouldn't happen.  So if you want to deem it a failed experiment
and get rid of it for now, I won't mind :)

Avi
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside