Skip Menu |

This queue is for tickets about the LockFile-Simple CPAN distribution.

Report information
The Basics
Id: 101537
Status: open
Priority: 0/
Queue: LockFile-Simple

People
Owner: RAM [...] cpan.org
Requestors: SNOOPYJC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.208
Fixed in: (no value)



Subject: Enhancement Request: Allow delay values < 1 second using Time::HiRes
I'm developing some real-time code that needs this file locking functionality, however, if the file is locked, I need it to retry ~10 times in under a second, so like a 50 MS sleep is required. This can be achieved by using Time::HiRes and usleep. You can probably keep your user interface by allowing a floating-point value for -delay. Thanks for considering my enhancement!
On Wed Jan 14 08:00:30 2015, SNOOPYJC wrote: Show quoted text
> I'm developing some real-time code that needs this file locking > functionality, however, if the file is locked, I need it to retry ~10 > times in under a second, so like a 50 MS sleep is required. This can > be achieved by using Time::HiRes and usleep. You can probably keep > your user interface by allowing a floating-point value for -delay. > > Thanks for considering my enhancement!
Actually you can do a drop-in replacement of "sleep($delay)" with "Time::HiRes::sleep($delay);"
Subject: Re: [rt.cpan.org #101537] Enhancement Request: Allow delay values < 1 second using Time::HiRes
Date: Wed, 14 Jan 2015 14:39:00 +0100
To: bug-LockFile-Simple [...] rt.cpan.org
From: Johan Vromans <jvromans [...] squirrel.nl>
LockFile::Simple is no longer maintained by me. Do youy want to adopt it?
On Wed Jan 14 08:39:13 2015, jvromans@squirrel.nl wrote: Show quoted text
> LockFile::Simple is no longer maintained by me. Do youy want to adopt it?
I, however, somehow already co-maintain it on https://github.com/renormalist/LockFile-Simple and accept patches. @SNOOPYJC - can you please provide a patch so that it perfectly works exactly as you need it? I will do the cpan release. Kind regards, Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/>