From: MenTaLguY Date: 2008-03-12T12:59:54+09:00 Subject: Re: [RFC] TimeoutError in core, timeouts for ConditionVariable#wait --=-+3eFdqhnz34FaGc3udIo Content-Type: text/plain Content-Transfer-Encoding: quoted-printable n Mon, 2008-03-10 at 13:38 +0900, Nobuyoshi Nakada wrote: > At Sun, 9 Mar 2008 12:13:39 +0900, > MenTaLguY wrote in [ruby-core:15835]: > > 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 <=3D 0 raise TimeoutError immediately. >=20 > Sounds nice. Even if my initial patch was rejected, I'm still interested in doing this. What would be an acceptable implementation method? -mental --=-+3eFdqhnz34FaGc3udIo 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) iD8DBQBH11VDEpMFVe94r24RAmOEAJwJneWpcyEPep45NW9xzdFIVCwWDQCfbLp3 14Yb63namju2ox9CBYXhZRM= =jRvl -----END PGP SIGNATURE----- --=-+3eFdqhnz34FaGc3udIo--