[ext] Remove class static variables without locking
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 16 Jan 2020 06:00:45 +0000 (15:00 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 14 Feb 2020 06:09:48 +0000 (22:09 -0800)
commit2c985cbcdb2523c9a7176bc6a2ca345372da557f
tree99a1cead1e6451bff9105d45e4fa30f51814ec7d
parent2d33bd4335657efe52c6c3368d652e787c0b7892
[ext] Remove class static variables without locking

As extensions are supposed to be thread-safe, using class static variables without locks is not stable.
Move class static variables to class private local object variables for python, tensorflow and caffe2.
Also update corresponding usages.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_caffe2.cc
ext/nnstreamer/tensor_filter/tensor_filter_python.cc
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow.cc