Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

sky (1411)

sky
  (email not shown publicly)

sky on IRC

Journal of sky (1411)

Monday July 02, 2001
03:28 PM

threads::shared

[ #366 ]
Been working alot on threads::shared, the thing that will make threads realy interesting.
  • my $foo = threads::shared::share([]);
  • my $foo : shared;
  • tie my $foo 'threads::shared';
  • lock($foo);
  • unlock($foo);
  • cond_wait($foo);
  • cond_signal($foo);
  • cond_broadcast($foo);

scalars and arrays are finished, hashes are just begun. Hashes are tricky because the itirator should realy not be shared, then we also have the issue of nested references, refs to arrays and hashes and REF refs. No support for that yet. Someone or I must also copy the code in pp_splice so splicing is supported on arrays, big hairy code!
Hopefully I can release this on wendsday with hash support, but no splice and no refs

Artur