Perl 6 Parallelism in Perl 6 #29

Critical, atomic, and STM ideas

Traits on blocks and subs:

 is critical trait -- blocks that shouldn't be interrupted or suspended

sub xyz is critical {
    # stuff to be done that shouldn't be interrupted
}

 is atomic trait -- blocks that won't perform irreversible actions

sub transaction is atomic { ... }
Copyright © 2013
http://www.pmichaud.com/2013/pres/