[neurun] Call dlclose for all backends (#9035)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Wed, 20 Nov 2019 04:18:07 +0000 (13:18 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 20 Nov 2019 04:18:07 +0000 (13:18 +0900)
commit4c3cb787869fb1b2d527088259efad2d8cd241aa
treed3875d751479b07d42e7d231efacf6bc3c5b67ce
parent372f5e7b486093dd17904928c689834d111ef329
[neurun] Call dlclose for all backends (#9035)

Call dlclose for all backends before termination. The handle pointer is
wrapped as unique_ptr and the handle map's order is changed since the
deletion order matters(backend objects must be deleted first).

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtime/neurun/core/src/backend/BackendManager.cc
runtime/neurun/core/src/backend/BackendManager.h