Re: Thread::pool
[email protected] (Javier) Wed, 30 Jul 2008 10:00:18 +0200
| Newsgroups | perl.ithreads |
|---|---|
| Message-ID | <[email protected]> |
Hi!
scan_files() is a function. Where is? This function is present in same
file. This code is very simple:
= = = = * * * * = = = =
sub scan_files
{
my $DIR = "/var/workq/";
while(1)
{
opendir(DIRHANDLE, $DIR) || die "ERROR: $DIR not read\n";
foreach (readdir(DIRHANDLE))
{
if (!-d $_)
{
$pool->job($_);
}
}
closedir DIRHANDLE;
sleep($Fax::Config::param{'queuescanperiod'});
}
}
= = = = * * * * = = = =
2008/7/29 Chris Fowler <[email protected]>:
> Where is scan_files()?
>
> --
> Chris Fowler
> OutPost Sentinel, LLC
> AIM: strtok2002
> Support @ SIP/[email protected]
> or 678-804-8193
> Email Support @ [email protected]
>
>
>
--
A greeting,
Javier.