summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-20 17:27:16 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-22 17:11:57 -0400
commitfbcac826c99fbc36a96af4bb49cc7f2f0c496416 (patch)
tree3cf03ba9ffa4b62943de8aa4da9dded51ec7f06f /lib/command_graph.c
parent8aeee10fe217316ca3cdb6423169b2efc413762a (diff)
lib: fix data race in thread history collection
Thread statistics are collected and stored in a hashtable shared across threads, but while the hashtable itself is protected by a mutex, the records themselves were not being updated safely. Change all thread history collection to use atomic operations. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions