summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmir Samuelov <amirs@codeaurora.org>2017-07-05 13:23:29 +0300
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-06 08:39:02 -0700
commit5459f66ad2a383bb51255b04cc65169b73a21fb0 (patch)
treeb81d1ce4bce6103a567039e15221a2fafd890f43 /tools/perf/scripts/python
parentb4d55be4153c4cff9aaaa0f69dfbcff922e4c46c (diff)
spcom: avoid race condition when handling commands
The spcom allows only one owner per channel, so only one app can open() a channel char device at a time. However, the channel owner process might share the channel file descriptor (fd) with other threads, that might write() concurrently a command to spcom, that can cause a race. Add a mutex to "serialize" handling of the commands. Change-Id: Ief9c6c48a862444dfff66d14d2317568cd6e81e6 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions