Squeak and native threads

J J azreal1977 at hotmail.com
Tue Jan 9 18:56:30 UTC 2007


But they don't.  Only variables updates (NOTE: most reads don't) do.


>From: Zulq <zulqarnain.t.alam at jpmorgan.com>
>Reply-To: The general-purpose Squeak developers 
>list<squeak-dev at lists.squeakfoundation.org>
>To: squeak-dev at lists.squeakfoundation.org
>Subject: Re: Squeak and native threads
>Date: Tue, 9 Jan 2007 09:56:53 -0800 (PST)
>
>
>Since almost every method contains some sort of transaction, how about 
>simply
>making all methods an implicit transaction?
>
>
>J J-6 wrote:
> >
> > BankAccount>>withdraw: aNumber
> >
> >   balance := balance - aNumber.
> >
> >   balance < 0 ifTrue: [ OverDrawn raise ].
> >
> >   ^ balance
> >
> > BankAccount>>deposit: aNumber
> >   balance := balance + aNumber.
> >   ^ balance.
> >
> > BankAccount>>transfer: aNumber to: anAccount
> >   ^ [
> >     anAccount deposit: aNumber.
> >     self withdraw: aNumber.
> >   ] asAtomicBlock value.
> >
>
>--
>View this message in context: 
>http://www.nabble.com/Squeak-and-native-threads-tf2930209.html#a8242863
>Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>

_________________________________________________________________
The MSN Entertainment Guide to Golden Globes is here.  Get all the scoop. 
http://tv.msn.com/tv/globes2007/?icid=nctagline2




More information about the Squeak-dev mailing list