home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Database Designers
/
Rational Rose 2000
/
Rational Setup.EXE
/
common
/
lib
/
MSWin32-x86
/
Thread
/
Specific.pm
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Perl POD Document
|
1999-01-26
|
455 b
|
30 lines
package Thread::Specific;
=head1 NAME
Thread::Specific - thread-specific keys
=head1 SYNOPSIS
use Thread::Specific;
my $k = key_create Thread::Specific;
=head1 DESCRIPTION
C<key_create> returns a unique thread-specific key.
=cut
sub import {
use attrs qw(locked method);
require fields;
fields->import(@_);
}
sub key_create {
use attrs qw(locked method);
return ++$FIELDS{__MAX__};
}
1;