Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    POE::Component::Pool::Thread 0.015

    Download button

    No screenshots available
    Downloads: 301  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Scott McCoy | More programs
    Perl Artistic License / FREE
    April 18th, 2007, 19:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    POE::Component::Pool::Thread description

    POE::Component::Pool::Thread is a POE Managed Boss/Worker threadpool.

    POE::Component::Pool::Thread is a POE Managed Boss/Worker threadpool.

    SYNOPSIS

    use POE qw( Component::Pool::Thread );

    POE::Component::Pool::Thread->new
    ( MinFree => 2,
    MaxFree => 5,
    MaxThreads => 15,
    StartThrneads => 5,
    Name => "ThreadPool",
    EntryPoint => &thread_entry_point,
    CallBack => &result_handler,
    inline_states => {
    _start => sub {
    my ($kernel, $heap) = @_[ KERNEL, HEAP ];

    # We are inside the component session
    $kernel->yield(run => @arguements);

    $kernel->post(ThreadPool => run => @arguements);
    },
    }
    );

    sub thread_entry_point {
    my (@arguements) = @_;

    return 1;
    }

    sub result_handler {
    my ($kernel, $result) = @_[ KERNEL, ARG0 ];

    $result == 1;
    }

    This is an expand-on-demand thread pool managed through a POE session in a manner that does not interfer with cooperative multitasking. A single pipe is created, each thread communicates its state to the main process through this pipe. No serialization occurs (these are threads, not child processes), so execution is very fast.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    POE component | Pool Thread | Perl module | POE::Component::Pool | POE | Boss

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM