summaryrefslogtreecommitdiff
path: root/include/blt_api.h
diff options
context:
space:
mode:
authorMaciej Socha <maciej.socha@stericsson.com>2011-10-26 10:53:18 +0200
committerKalle Vahlman <kalle.vahlman@movial.com>2011-12-14 08:38:15 +0200
commit68299e69a811a4876bd27b807e22482330dcf6b0 (patch)
tree30bc3b6b4c30c6180385b815f832c2b6d3f9876b /include/blt_api.h
parent604a2f1be71151d320d280898ddc138e73a2905a (diff)
Add timeout to the callback thread
The callback thread was polling the b2r2 device without an explicit timeout. The poll() function could thus block the thread indefinitely, even though the b2r2 device may have been closed. With an explicit timeout, control is guaranteed to return to the callback thread, allowing it to exit. Further, a pthread_detach() call was added to have the thread's context cleaned up, once the thread terminates. ST-Ericsson ID: 367329, 356025 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I789cda9c54ce4a1cd827ca8a0137ab2b5a01562e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35313 Reviewed-by: Maciej SOCHA <maciej.socha@stericsson.com> Tested-by: Maciej SOCHA <maciej.socha@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QATEST Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
Diffstat (limited to 'include/blt_api.h')
0 files changed, 0 insertions, 0 deletions