thread: use two lists for each thread 69/170769/2
authorBoram Park <boram1288.park@samsung.com>
Thu, 22 Feb 2018 05:02:51 +0000 (14:02 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Feb 2018 06:13:15 +0000 (06:13 +0000)
commit3e00a0eecd370289ff30426836f50c1e7874566e
tree2c43ffa888998033eda0b5dd9bb2f35d90f110a8
parent65b89e98b7f61add110439f250cceab0e106c4af
thread: use two lists for each thread

When tdm_thread_call_cb is called in both threads at the same time, the 'called'
variable makes a thread issue.

1) Calling tdm_thread_call_cb in display-thread makes the 'called' variable as 1
2) Calling tdm_thread_call_cb in tdm-thread at the same time checks cb->called.
3) Because cb->called is 1 by display-thread, tdm_thread_call_cb in tdm-thread
   does nothing.

Change-Id: I009e3a17b40d32502f3567b8ecd712fa7c8dc349
src/tdm_thread.c