[Bordeaux-threads-devel] Deprecating recursive locks

Anton Vodonosov avodonosov at yandex.ru
Tue Apr 17 19:09:00 UTC 2012



17.04.2012, 19:21, "Stelian Ionescu" <sionescu at cddr.org>:
> They're an ugly hack, as described their inventor David Butenhof
> (http://tinyurl.com/butenhof-recursive-mutexes) and aren't supported by
> all lisps: Allegro, Clozure, CMUCL, SBCL(it has a kind of recursive
> lock, but it's not a posix recursive lock), so I was thinking of making
> a 1.0 release in which to remove them altogether.
>
> What do you think ?

Does it mean that every time, when trying to lock an object, 
we will need to ensure it hasn't been locked already?

If yes, it complicates writing synchronization code.

But if it can not be reliably supported based on the features provided
by all lisps, then removing them may probably be right.




More information about the bordeaux-threads-devel mailing list