Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.541.709 Times

Thread::Tie 0.12

  Date Added: February 05, 2010  |  Visits: 664

Thread::Tie

Report Broken Link
Printer Friendly Version


Product Homepage
Download (85 downloads)



Thread::Tie can tie variables into a thread of their own. SYNOPSIS use Thread::Tie; # use as early as possible for maximum memory savings # use default thread + tieing + create thread when needed tie $scalar, Thread::Tie; tie @array, Thread::Tie; tie %hash, Thread::Tie; tie *HANDLE, Thread::Tie; # use alternate implementation tie $scalar, Thread::Tie, { module => Own::Tie::Implementation, # used automatically use => Use::This::Module::Also, # optional, also as [] eval => arbitrary Perl code, # optional }; # initialize right away tie $scalar, Thread::Tie, {}, 10; tie @array, Thread::Tie, {}, qw(a b c); tie %hash, Thread::Tie, {}, (a => A, b => B, c => C); tie *HANDLE, Thread::Tie, {},>:layer,filename; # create an alternate thread and use that my $tiethread = Thread::Tie::Thread->new; tie $scalar, Thread::Tie, {thread => $tiethread}; # object methods my $tied = tie stuff,Thread::Tie,parameters; my $tied = tied( stuff ); my $semaphore = $tied->semaphore; # scalar for lock()ing tied variable my $module = $tied->module; # module tied to in thread my $tiethread = $tied->thread; # thread to which variable is tied my $tid = $tiethread->tid; # thread id of tied thread my $thread = $tiethread->thread; # actual "threads" thread untie( stuff ); # calls DESTROY in thread, cleans up thoroughly Thread::Tie->shutdown; # shut down default handling thread $tiethread->shutdown; # shut down specific thread.

Requirements: No special requirements
Platforms: Linux
Keyword: Libraries Programming Scalar Thread Threadtie Tie Tied Variables
Users rating: 0/10

License: Freeware Size: 15.36 KB
USER REVIEWS
More Reviews or Write Review


THREAD::TIE RELATED
Libraries  -  Fry::Shell 0.15
Fry::Shell is a flexible shell framework which encourages using loadable libraries of functions. SYNOPSIS From the commandline: perl -MFry::Shell -eshell OR In a script: package MyShell; use Fry::Shell; #subs sub evalIt { my $cls =...
58.37 KB  
Libraries  -  Clone 0.23
Clone is a Perl module that can recursively copy Perl datatypes. SYNOPSIS use Clone; push @Foo::ISA, Clone; $a = new Foo; $b = $a->clone(); # or use Clone qw(clone); $a = { foo => bar, move => zig }; $b = [ alpha, beta, gamma,...
10.24 KB  
Libraries  -  Tie::CountLoop 1.5
Tie::CountLoop is a Perl module that helps you have a counter looping in a scalar with min max and increment value. SYNOPSIS use Tie::CountLoop; tie my $counter , Tie::CountLoop,15 ,-1 ,15 ,7 ,0; my $t = tied $counter; $t->increment( 1 );...
3.07 KB  
Libraries  -  Tie::Scalar::Sticky 1.06
Tie::Scalar::Sticky is a Perl module with block assignments to scalars. SYNOPSIS use strict; use Tie::Scalar::Sticky; tie my $sticky, Tie::Scalar::Sticky; $sticky = 42; $sticky = ; # still 42 $sticky = undef; # still 42 $sticky = 0; #...
3.07 KB  
Libraries  -  Locale::Maketext::Lexicon::Tie 0.62
Locale::Maketext::Lexicon::Tie is a Perl module to use tied hashes as lexicons for Maketext. SYNOPSIS package Hello::I18N; use base Locale::Maketext; use Locale::Maketext::Lexicon { en => [ Tie => [ DB_File => en.db ] ], }; This module...
83.97 KB  
Libraries  -  Tie::CharArray 1.00
Tie::CharArray module can access Perl scalars as arrays of characters. SYNOPSIS use Tie::CharArray; my $foobar = a string; tie my @foo, Tie::CharArray, $foobar; $foo[0] = A; # $foobar = A string push @foo, !; # $foobar = A string! print...
5.12 KB  
Libraries  -  Tie::Trace 0.05
Tie::Trace can easy print debugging with tie. SYNOPSIS use Tie::Trace; my %hash; tie %hash, "Tie::Trace"; $hash{hoge} = hogehoge; # warn Hash => Key: hoge, Value: hogehgoe at ... my @array; tie @aray, "Tie::Trace"; push @array,...
8.19 KB  
Libraries  -  Scalar::Defer 0.07
Scalar::Defer is a Perl module to calculate values on demand. SYNOPSIS use Scalar::Defer; # exports defer and lazy my ($x, $y); my $dv = defer { ++$x }; # a deferred value (not memoized) my $lv = lazy { ++$y }; # a lazy value (memoized)...
25.6 KB  
Libraries  -  Tie::ListKeyedHash 1.02
Tie::ListKeyedHash is a system allowing the use of anonymous arrays as keys to a hash. SYNOPSIS use Tie::ListKeyedHash; [$X =] tie %hash, Tie::ListKeyedHash; my $live_key = [key,items,live]; $hash{$live_key} = Hello!;...
16.38 KB  
Libraries  -  Tie::UrlEncoder 0.01
Tie::UrlEncoder is a Perl module for interpolatably URL-encode strings. Syntactic sugar for URL-Encoding strings. Tie::UrlEncoder imports a tied hash %urlencode into your package, which delivers a RFC 1738 URL Encoded string of whatever is given...
3.07 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB