threads::shared

sky on 2001-07-02T20:28:37

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