Re: Remove useless lock around opendir/readdir

2015-04-05 Thread Philip Guenther
On Fri, Mar 27, 2015 at 2:50 AM, Carlos Martín Nieto c...@dwim.me wrote: A call to opendir thread-safe and the readdir calls only share the buffer within the same directory stream, which is local to this function. Therefore this lock does not buy us anything. committed, thanks Philip

Re: Remove useless lock around opendir/readdir

2015-03-30 Thread Brent Cook
On Mar 30, 2015, at 12:11 AM, Philip Guenther guent...@gmail.com wrote: On Fri, Mar 27, 2015 at 2:50 AM, Carlos Martín Nieto c...@dwim.me wrote: A call to opendir thread-safe and the readdir calls only share the buffer within the same directory stream, which is local to this function.

Re: Remove useless lock around opendir/readdir

2015-03-29 Thread Philip Guenther
On Fri, Mar 27, 2015 at 2:50 AM, Carlos Martín Nieto c...@dwim.me wrote: A call to opendir thread-safe and the readdir calls only share the buffer within the same directory stream, which is local to this function. Therefore this lock does not buy us anything. Yep. Heads up on this, bcook, in