About 9,340 results
Open links in new tab
  1. Coro - the only real threads in perl - metacpan.org

    Unlike the so-called "Perl threads" (which are not actually real threads but only the windows process emulation (see section of same name for more details) ported to UNIX, and as such act as …

  2. Coro::Intro - metacpan.org

    The first such primitives is Coro::Semaphore, which implements counting semaphores (binary semaphores are available as Coro::Signal, and there are Coro::SemaphoreSet and Coro::RWLock …

  3. Coro::Event - do events the coro-way, with Event - metacpan.org

    Again: In Event callbacks, you must never ever call a Coro function that blocks the current thread. While this seems to work superficially, it will eventually cause memory corruption and often results in …

  4. Coro::AnyEvent - integrate threads into AnyEvent - metacpan.org

    As of Coro 5.21 and newer, this module gets loaded automatically when AnyEvent initialises itself and Coro is used in the same process, thus there is no need to load it manually if you just want your …

  5. Coro::State - first class continuations - metacpan.org

    Coro caches C contexts that are not in use currently, as creating them from scratch has some overhead. This function returns the current maximum number of idle C contexts and optionally sets the new …

  6. Coro::Socket - non-blocking socket-I/O - metacpan.org

    For listening sockets, use AnyEvent::Socket::tcp_server. $fh = new Coro::Socket param => value, ... Create a new non-blocking tcp handle and connect to the given host and port. The parameter names …

  7. Coro::ProcessPool - An asynchronous pool of perl processes - metacpan.org

    Returns a Coro::ProcessPool::Pipeline object which can be used to pipe requests through to the process pool. Results then come out the other end of the pipe, not necessarily in the order in which they were …

  8. Coro::EV - do events the coro-way, with EV - metacpan.org

    This module does two things: First, it offers some utility functions that might be useful for threads (although Coro::AnyEvent offers more and more portable functions), and secondly, it integrates Coro …

  9. Coro::Signal - thread signals (binary semaphores) - metacpan.org

    It is recommended not to mix send and broadcast calls on the same Coro::Signal without some deep thinking: while it should work as documented, it can easily confuse you :->

  10. Coro::Generator - Create generators using Coro - metacpan.org

    NAME Coro::Generator - Create generators using Coro SYNOPSIS use 5.10.0; # This module does NOT require 5.10, but 'say' does use strict; use Coro::Generator; my $even = generator { my $x = 0; …