Coro::Specific man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Specific(3)	      User Contributed Perl Documentation	   Specific(3)

NAME
       Coro::Specific - manage coroutine-specific variables.

SYNOPSIS
	use Coro::Specific;

	my $ref = new Coro::Specific;

	$$ref = 5;
	print $$ref;

DESCRIPTION
       This module can be used to create variables (or better: references to
       them) that are specific to the currently executing coroutine. This
       module does not automatically load the Coro module (so the overhead
       will be small when no coroutines are used).

       A much faster method is to store extra keys into %$Coro::current - all
       you have to do is to make sure that the key is unique (e.g. by
       prefixing it with your module name). You can even store data there
       before loading the Coro module - when Coro is loaded, the keys stored
       in %$Coro::current are automatically attached to the coro thread
       executing the main program.

       You don't have to load "Coro::Specific" manually, it will be loaded
       automatically when you "use Coro" and call the "new" constructor.

       new Create a new coroutine-specific scalar and return a reference to
	   it. The scalar is guarenteed to be "undef". Once such a scalar has
	   been allocated you cannot deallocate it (yet), so allocate only
	   when you must.

BUGS
       The actual coroutine specific values do not automatically get destroyed
       when the Coro::Specific object gets destroyed.

AUTHOR
	Marc Lehmann <schmorp@schmorp.de>
	http://home.schmorp.de/

perl v5.14.2			  2011-11-11			   Specific(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net