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

Re: Synchronized / Thread syntax in Perl 6

Thread Previous | Thread Next
From:
Paul Hodges
Date:
May 31, 2006 07:59
Subject:
Re: Synchronized / Thread syntax in Perl 6
Message ID:
20060531145847.92255.qmail@web31612.mail.mud.yahoo.com

How about one of these?
======================

 class Baz {
   has $.a is restricted;
   has $.b is controlled;
   has $.c is unique;
   has $.d is shared;
   has $.e is queued;
   has $.f is token;
   ...
 }

--- John Drago <john.drago@precissystems.com> wrote:

> I asked this via the Google Groups interface a few weeks ago, but I'm
> not sure if it made it here.
> I am asking again in case the question never made it onto the list.
> 
> Has the syntax for synchronized/threaded @things been worked out?
> For example:
> 
> class Foo is synchronized {
>   ...
> }
> 
> our method Bar is synchronized {
>   ...
> }
> 
> class Baz {
>   has $.Bux is synchronized;
> }
> 
> ...or is there some new, less Java-esque way to express "only one
> thread may access this thing at a time"?
> 
> 
> 
> ________________________________________
> John Drago | VP Software Engineering
> john.drago@precissystems.com 
> www.precissystems.com 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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