in reply to Re: Threads slurping a directory and processing before conclusion
in thread Threads slurping a directory and processing before conclusion

I'd never seen any documentation mentioned that enqueue undef did that, thanks for highlighting it.
  • Comment on Re^2: Threads slurping a directory and processing before conclusion

Replies are listed 'Best First'.
Re^3: Threads slurping a directory and processing before conclusion
by Corion (Patriarch) on Aug 27, 2011 at 07:20 UTC

    There is no documentation mentioning that because you have to do all of this yourself. You will need to make the receiving threads quit once they read a undef from their input queue.