JonY 2014-10-02 02:11: > On 9/28/2014 14:44, lh_mouse wrote: >> mingw-w64-libraries/winpthread/src/spinlock.c:66 >> int initrv = pthread_spin_init (lock, >> PTHREAD_PROCESS_PRIVATE); >> >> There is no corresponding pthread_spin_destroy() for this lock, hence >> its memory leaks. >> > > Kai, ping.
I do not see where there should be the appropriate pthread_spin_destroy(). Moreover, I wrote the test that shows that no leaks when using spinlocks: for ( int i = 0; i < 1024*1024; ++i ) { pthread_spinlock_t s; pthread_spin_init(&s, PTHREAD_PROCESS_PRIVATE); pthread_spin_lock(&s); pthread_spin_unlock(&s); pthread_spin_destroy(&s); } -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingw-w64/ ___________________________________________________ Another online IDE: http://liveworkspace.org/ ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public