halpai: Add support of reference count for hal_common_(get|put)_backend function 02/252802/4
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 2 Feb 2021 10:09:58 +0000 (19:09 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Feb 2021 05:59:19 +0000 (14:59 +0900)
commit080fa01f71452ddf70f84372e3a6c2bf9796680b
tree073db005750186b2e3d565bdbaa012ab1a03b708
parent055c4c02923ace06187fd3b3006d037a523a0846
halpai: Add support of reference count for hal_common_(get|put)_backend function

Some HAL module need to call hal_common_(get|put)_backend() funcions at
multiple points at the same time. So that have to support this
requirement by using the reference count. When touching the reference
count, uses the mutex in order to keep the data integrity.

Change-Id: I2c3a662f21d1c56c7b5b077c7a3f155bf47fd792
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/common.h
src/hal-api-common.c