[NE] Add order in constructor and destructor
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 13 Aug 2019 03:32:55 +0000 (12:32 +0900)
committer임근식/On-Device Lab(SR)/Principal Engineer/삼성전자 <geunsik.lim@samsung.com>
Tue, 20 Aug 2019 04:35:13 +0000 (13:35 +0900)
commit541b983b525e502a99c30721139cf14af5eddc12
treed5bf80b79f502dfed1f997c8761294aff04e454a
parent7fd74fe896baeede97b3c78cc900ab327cc7ab73
[NE] Add order in constructor and destructor

Add order in the calling of constructor and destructor
The order is -
IP->handler->mem,scheduler->n4
inputservices->NPUdrvAPI->conf

The order of IP and inputservices (ip->inputservices) is currently
maintained using priority of constructor and destructor

The order of constructor and destructor is important as the
constructor/destructor of the modules are dependent on each other
and without the order being set, the behavior is randomized

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
16 files changed:
src/core/ip/plugin-comm-ip.c
src/core/meson.build
src/core/ne-conf.c
src/core/ne-conf.h
src/core/ne-handler.c
src/core/ne-host-input-service.c
src/core/ne-inf.c
src/core/ne-inf.h
src/core/ne-inputservice.h
src/core/ne-scheduler.c
src/core/ne-scheduler.h
src/core/ne-utils.h
src/core/npu/NPUdrvAPI.c
src/core/npu/NPUdrvAPI.h
src/test/unittests/ne_core_gem_test.cpp
src/test/unittests/ne_core_npu_test.cpp