From cf2a7690871d94f16e48d136f568f7380a249513 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 19 Jul 2016 21:43:58 +0200 Subject: [PATCH] [DEV] update sharedPtr --- audio/ess/LoadedFile.cpp | 2 +- audio/ess/LoadedFile.h | 3 ++- audio/ess/effects.cpp | 14 +++++++------- audio/ess/effects.h | 10 +++++----- audio/ess/ess.cpp | 10 +++++----- audio/ess/music.cpp | 6 +++--- audio/ess/music.h | 12 ++++++------ 7 files changed, 29 insertions(+), 28 deletions(-) diff --git a/audio/ess/LoadedFile.cpp b/audio/ess/LoadedFile.cpp index 75d4718..72a8e2d 100644 --- a/audio/ess/LoadedFile.cpp +++ b/audio/ess/LoadedFile.cpp @@ -53,7 +53,7 @@ audio::ess::LoadedFile::LoadedFile(const std::string& _fileName, int8_t _nbChanR #if defined(__TARGET_OS__Android) pthread_create(&m_thread, nullptr, &audio::ess::LoadedFile::threadCallback, this); #else - m_thread = std::make_shared(&audio::ess::LoadedFile::threadCall, this); + m_thread = ememory::makeShared(&audio::ess::LoadedFile::threadCall, this); if (m_thread == nullptr) { EWOLSA_ERROR("Can not create thread ..."); return; diff --git a/audio/ess/LoadedFile.h b/audio/ess/LoadedFile.h index 51678f9..cc673a8 100644 --- a/audio/ess/LoadedFile.h +++ b/audio/ess/LoadedFile.h @@ -7,6 +7,7 @@ #include #include +#include namespace audio { namespace ess { @@ -21,7 +22,7 @@ namespace audio { #if defined(__TARGET_OS__Android) pthread_t m_thread; #else - std::shared_ptr m_thread; + ememory::SharedPtr m_thread; #endif public: LoadedFile(const std::string& _fileName, int8_t _nbChanRequested=1); diff --git a/audio/ess/effects.cpp b/audio/ess/effects.cpp index fff2e99..a633b04 100644 --- a/audio/ess/effects.cpp +++ b/audio/ess/effects.cpp @@ -12,7 +12,7 @@ #include