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

Synchronized / Thread syntax in Perl 6

Thread Next
From:
John Drago
Date:
May 31, 2006 02:11
Subject:
Synchronized / Thread syntax in Perl 6
Message ID:
001b01c68431$c193a320$2305640a@corp.data393.com
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 



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