in reply to Re: Re: Dealing with non Thread safe modules
in thread Dealing with non Thread safe modules

Good question. In Perl, this is difficult since the Threads.pm muteces are exactly what's holding PerlThreads back in the stone age. I'm working on a fake mutex that uses flock on some file. Read more about the difficulties with flock here. In the meantime, just flock the library or some arbitrary file everytime you wish to access the file. Keep in mind that this defeats any use of threads within that library- only one thread at a time may access it and your thread stacks may expand greatly. I'll keep you posted on my own efforts as well. Good luck!
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.
  • Comment on Re: Re: Re: Dealing with non Thread safe modules

Replies are listed 'Best First'.
Re: Re: Re: Re: Dealing with non Thread safe modules
by chorg (Monk) on Feb 12, 2001 at 02:31 UTC
    Bear with me - I'm almost there...

    When you say flock the library - exactly what do you mean? I am confused...

    BTW, thanks for the help - I'm learning tons today:)
    _______________________________________________
    "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."