Re: [Sbcl-devel] How to use condition variables

Quoting Daniel Barlow (dan@...):
> > It's also bit strange that "New thread: xxx" is printed two times.
> > Are streams not thread safe by default? All this happens with SBCL
> > 0.8.7.36, Linux 2.4.12, glibc 2.2.2.
>=20
> fd-streams are definite "here be dragons" territory, I'm afraid.
Even simple-threads should not force thread-safety on their users.
While locking around stream operations might be convenient, it is
probably too slow to be useful. =20
Note that java.io was synchronized, but java.nio is not.
The Unix solution is to implement all stream functions twice and require
people to write getc_unlocked instead of getc if they care about speed.
See unlocked_stdio(3). Does anyone want that?
d.