elm_image: Fix potential race conditions in async mode
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 9 Apr 2015 08:09:53 +0000 (17:09 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 10 Apr 2015 07:46:56 +0000 (16:46 +0900)
commit743ce4e86d29f7d57be42558f1154876b4234e03
tree92264ecf7a75565cc3101a37fb7b7f3f4d08c8f3
parentebda3cc03ec4413f2b8bf92a0a838ee1797ef95a
elm_image: Fix potential race conditions in async mode

Without any locking or thread-safe mechanism, the previous implementation
would have failed as soon as too many file_set() happened on the same
object. Indeed, file_set() can happen while the async open thread is
running. I shouldn't have blindly listened to Cedric :P
src/lib/elm_image.c
src/lib/elm_widget_image.h