Skip Menu |
 

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 94447
Status: open
Priority: 0/
Queue: CHI

People
Owner: Nobody in particular
Requestors: daniel.frett [...] ccci.org
Cc:
AdminCc:

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



Subject: load_driver method
Download (untitled) / with headers
text/plain 686b
it would be useful to have a load_driver method that would make it easier to load CHI drivers before a process is forked (or a thread is created with the threads module) without needing to create an actual cache object using the driver, or duplicating internal CHI code for loading drivers. my use case for this is in MogileFS::Client::Fuse. I want to be able to load all the necessary perl modules before I mount the FUSE filesystem. Once the FS is mounted, Fuse module will spawn additional threads as needed when running in threaded mode. I want the benefits of loading a module once with the thread safety of not sharing objects that may not be thread-safe across multiple threads.
Subject: Re: [rt.cpan.org #94447] load_driver method
Date: Fri, 4 Apr 2014 14:57:25 -0700
To: bug-CHI [...] rt.cpan.org
From: Jonathan Swartz <swartz [...] pobox.com>
Download (untitled) / with headers
text/plain 1.1k
Sounds reasonable. Patch welcome. :) On Apr 4, 2014, at 10:11 AM, "Daniel Frett via RT" <bug-CHI@rt.cpan.org> wrote: Show quoted text
> Fri Apr 04 13:11:11 2014: Request 94447 was acted upon. > Transaction: Ticket created by dfrett > Queue: CHI > Subject: load_driver method > Broken in: (no value) > Severity: Wishlist > Owner: Nobody > Requestors: daniel.frett@ccci.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=94447 > > > > it would be useful to have a load_driver method that would make it easier to load CHI drivers before a process is forked (or a thread is created with the threads module) without needing to create an actual cache object using the driver, or duplicating internal CHI code for loading drivers. > > my use case for this is in MogileFS::Client::Fuse. I want to be able to load all the necessary perl modules before I mount the FUSE filesystem. Once the FS is mounted, Fuse module will spawn additional threads as needed when running in threaded mode. I want the benefits of loading a module once with the thread safety of not sharing objects that may not be thread-safe across multiple threads.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.