Re: Antw: Re: LMDB test assertion failures on Linux/MIPS

2014-07-26 Thread Howard Chu
Howard Chu wrote: Martin Lucina wrote: ulrich.wi...@rz.uni-regensburg.de said: Hi! I think a problem with your test program is that you don't wait for the write() thread to finish before you try to read the mmap(). See how locking on a producer-consumer (or reader-writer) relationship is

Antw: Re: LMDB test assertion failures on Linux/MIPS

2014-03-11 Thread Ulrich Windl
Hi! I think a problem with your test program is that you don't wait for the write() thread to finish before you try to read the mmap(). See how locking on a producer-consumer (or reader-writer) relationship is usually implemented (If you don't have it ready, I could send you the algorithms).

Re: Antw: Re: LMDB test assertion failures on Linux/MIPS

2014-03-11 Thread Martin Lucina
ulrich.wi...@rz.uni-regensburg.de said: Hi! I think a problem with your test program is that you don't wait for the write() thread to finish before you try to read the mmap(). See how locking on a producer-consumer (or reader-writer) relationship is usually implemented (If you don't have

Re: Antw: Re: LMDB test assertion failures on Linux/MIPS

2014-03-11 Thread Howard Chu
Martin Lucina wrote: ulrich.wi...@rz.uni-regensburg.de said: Hi! I think a problem with your test program is that you don't wait for the write() thread to finish before you try to read the mmap(). See how locking on a producer-consumer (or reader-writer) relationship is usually implemented