--9lPIYxQATf6TAhRxcIZ
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I've been reworking JRuby's stdlib to improve performance and fix
problems with native threads.  Most of the work has not involved API
changes, but there have been a few small ones.  To start with, I'd like
to get feedback about two of the early changes I made:

 1. I added a second optional argument to ConditionVariable#wait which
specifies a timeout in seconds.  If no second argument is provided,
#wait will wait indefinitely, as it did before.  If a specified timeout
elapses before the waiting thread is signaled, #wait raises
TimeoutError.  Timeouts <= 0 raise TimeoutError immediately.

 2. To support this without introducing a new dependency on timeout.rb
(Timeout itself is not used), I moved TimeoutException into core;
Timeout::Error is now a constant set to TimeoutException, rather than
the other way around.

Both these changes are still tentative; I would appreciate it if any
comments and concerns were raised now before I start work on a patch to
implement them in 1.9.

-mental

--9lPIYxQATf6TAhRxcIZ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBH01XpEpMFVe94r24RAjeQAJ92ay9sTnWin7F+DkkQlZr8+JYTAQCfbcpy
VYKSIczBKCyoWU3M/4lJF6Y8+
-----END PGP SIGNATURE-----

--9lPIYxQATf6TAhRxcIZ--