[Service] Apply node worker for standalone model 38/244938/3
authorDongHyun Song <dh81.song@samsung.com>
Mon, 28 Sep 2020 06:32:06 +0000 (15:32 +0900)
committerjaekuk lee <juku1999@samsung.com>
Mon, 5 Oct 2020 10:09:39 +0000 (10:09 +0000)
commit2b011acf4a65ec8b940605ddeb53cc3709f2009d
treed918b118100fc28c060a8a44df8f8076106f8fa2
parent7e91148606ac17af68690a5c738ce49d26ed4aa9
[Service] Apply node worker for standalone model

This change is implemented for

 1) unify source code with global model
 2) isolate v8 variable scope from main thread
   - standalone service application cannot get main global variable
     of service_manaer / service_runner

There is no noticeable memory increase with node worker.

Change-Id: I7bb4576026ce326a3903987c537810093db028b4
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/common/service_manager.ts
wrt_app/service/main.ts