The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

threads::queue - thread queue

SYNOPSIS

  use threads::queue;
  my $queue = threads::queue->new("entry1", 4, 20);
  $queue->enqueue("bar");
  my $entry = $queue->dequeue();
  my $entry = $queue->dequeue_nb();
  my $entries = $queue->pending();  

ABSTRACT

This module implments a threadsafe queue.

DESCRIPTION

This module implements a threadsafe queue.

SEE ALSO

threads::shared

AUTHOR

Arthur Bergman, arthur at contiller.se

COPYRIGHT AND LICENSE

Copyright 2001 by Arthur Bergman

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.