Move write_lock from attrs to each attribute 82/99482/1 accepted/tizen/common/20161129.173533 accepted/tizen/ivi/20161130.015411 accepted/tizen/mobile/20161130.015154 accepted/tizen/tv/20161130.015239 accepted/tizen/wearable/20161130.015327 submit/tizen/20161129.052917
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 23 Nov 2016 04:46:41 +0000 (13:46 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 23 Nov 2016 04:46:41 +0000 (13:46 +0900)
commit0afb671a114e63fe69f00ac5778e31f629b9d67c
tree481333e20c6ea1e3ed99cac0289002c942a29a12
parent5eb594d5dd5fd49f154a8d03b9f309b16882f945
Move write_lock from attrs to each attribute

Previously, a common write_lock is used for set_attribute and get_attribute of string type.
So, get_attribute function for string type should wait if some set_attribute function is working although it's not related each other.
This commit removes a common write lock and add each write_locks to attribute,
then lock dependencies are removed among each attributes.

[Version] 0.2.98
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161122.5]

Change-Id: I3e11ace7200fd02ea4f05828b5ef5c116b15bbe5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
include/mm_attrs_private.h
mm_attrs.c
mm_attrs_private.c
packaging/libmm-common.spec