D
David Morel
Hi all,
I need a subroutine that reads the next line in an open file.
Ordinarily this would be a trivial subroutine... you just read a line
off of a filehandle.
However, I need this subroutine to be threads-safe. That is, I plan on
having many threads be using this subroutine, and I need to make sure
that it is always reading the next line no matter what thread is using
it.
The problem I came across is that you are not allowed to share
filehandles (GLOBS). So how would I go about implementing this
routine?
Thanks,
David Morel
I need a subroutine that reads the next line in an open file.
Ordinarily this would be a trivial subroutine... you just read a line
off of a filehandle.
However, I need this subroutine to be threads-safe. That is, I plan on
having many threads be using this subroutine, and I need to make sure
that it is always reading the next line no matter what thread is using
it.
The problem I came across is that you are not allowed to share
filehandles (GLOBS). So how would I go about implementing this
routine?
Thanks,
David Morel