Marcus Brinkmann <[EMAIL PROTECTED]> writes:

> The C library needs recursive locks for the dynamic linker (loading object
> files at run time), and they might be quite useful in libraries, too
> (for better modularization).

Incidentally, it is my opinion that recursive locks don't improve
modularization, but they do make possible various extremely sloppy
coding strategies.

They actually make things *less* modular, for the simple reason that
suddenly the behavior of the code depends on a bit of global state
("what thread am I") instead of local state ("what is my immediate
execution context").


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to