develooper Front page | perl.perl6.language | Postings from May 2006

Re: Synchronized / Thread syntax in Perl 6

Thread Previous | Thread Next
From:
Benjamin Smith
Date:
May 31, 2006 08:43
Subject:
Re: Synchronized / Thread syntax in Perl 6
Message ID:
20060531154231.GH26015@vtrl.co.uk
On Tue, May 30, 2006 at 03:41:06PM -0600, John Drago wrote:
> class Foo is synchronized {
>   ...
> }
> 
> our method Bar is synchronized {
>   ...
> }
> 
> class Baz {
>   has $.Bux is synchronized;
> }

To everyone participating in this thread:
There has already been a draft spec for concurrency written, please see
http://svn.perl.org/perl6/pugs/trunk/docs/Perl6/Spec/Concurrency.pod .

It suggests "is critical;" for the first, and second, but I can't see
anything like the third.   It also suggests that Perl6 will have
transactions and so will also have "is atomic".

(There's a Google Summer of Code project to add software transactional
memory primitives to parrot.)

-- 
Benjamin Smith <bsmith@vtrl.co.uk, benjaminsmith86@yahoo.co.uk>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About