[Ecls-list] Locking strategy (best so far)
Matthew Mondor
mm_lists at pulsar-zone.net
Fri Mar 30 01:06:00 UTC 2012
On Thu, 29 Mar 2012 22:49:26 +0200
Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com> wrote:
> On Thu, Mar 29, 2012 at 5:57 PM, Juan Jose Garcia-Ripoll <
> juanjose.garciaripoll at googlemail.com> wrote:
>
> > This seems to be a good compromise, using the underlying operating system
> > for waiting and signaling and using a fast atomic path for detecting the
> > lock-free case. First the simple mutex
>
>
> The code for that implementation has been uploaded. It is only used on
> POSIX platforms which provide the previously mentioned implementation if
> signals. On other platforms ECL will still use the spinlock with increasing
> waiting times.
With the new code (with my FILE-buffering changes or without it), the
test httpd reliably locks after load for me, then if I break it in
slime the process exits. I'll try to come up with more details about
this soon.
Thanks,
--
Matt
More information about the ecl-devel
mailing list