From 82b97c853674e3a7272648eb046318959c3c39e3 Mon Sep 17 00:00:00 2001 From: Marcin Junczys-Dowmunt Date: Tue, 3 May 2016 23:51:17 +0100 Subject: [PATCH] more coolness --- src/mad.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mad.h b/src/mad.h index 47d27be4..79257ab7 100644 --- a/src/mad.h +++ b/src/mad.h @@ -24,6 +24,7 @@ struct Chainable { virtual void set_zero_adjoint() { } static inline void* operator new(size_t nbytes) { + // thread_local variable return p.ordered_malloc(nbytes); } };