From: MenTaLguY Date: 2006-02-22T09:34:24+09:00 Subject: Re: [ANN] lazy.rb 0.9.5 -- transparent futures! --=-pZdr/TXxQCTDj/yzEmTD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2006-02-22 at 09:07 +0900, Daniel Nugent wrote: > What's the purpouse of the spinlock in __synchronize__? > To keep a Future's block from evaluating several times in parallel? s/Future/Promise/, and you've got it. It ensures that each promise only ever gets evaluated once, even when multiple threads demand its result at the same time. Nothing to do with futures in particular; I only require threadsafe for futures because using futures guarantees that your program will have multiple threads. -mental --=-pZdr/TXxQCTDj/yzEmTD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD+7GqSuZBmZzm14ERAr9RAKDaPWxo4bWt1VQTslG7rh6cOa+glgCdHmZZ 3luo9rohBNy0c0WnC5Dp+v4= =R/te -----END PGP SIGNATURE----- --=-pZdr/TXxQCTDj/yzEmTD--