new locking API

Kevin Ottens ervin at kde.org
Mon Mar 26 12:44:51 PDT 2007


Le Lundi 26 Mars 2007, David Zeuthen a écrit :
> As Danny alluded to, there's a new locking API - and this time, one that
> actually isn't just advisory locks; e.g. you can use this to prevent
> automounters from mounting devices. I've also written docs for it (and
> cleaned up most of the spec); see
>
>  http://people.freedesktop.org/~david/hal-spec/hal-spec.html#locking
>
> The code itself is in master
>
>  http://gitweb.freedesktop.org/?p=hal.git
>
> Comments / questions on both the docs/code welcome. Thanks.

I've one question, why locking per interface? Why not locking per device?
It's not exactly obvious for me, I would feel natural to lock a device.

Other than that, I like the new semantic of those locks. Nice work.

Regards.
-- 
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."


More information about the hal mailing list