apps/iperf: add iperf_api semaphore on reporter callback
authorEunBong Song <eunb.song@samsung.com>
Thu, 27 Apr 2017 05:17:14 +0000 (14:17 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 14:00:42 +0000 (23:00 +0900)
commit5f00065c549cb1187316bd7f43205be53649c6ac
tree95a4a421bf07f09ad5f6ea1140f15b7b8e3c9714
parent3e4666b2a18e277bab93c462dcabb3dff65e0086
apps/iperf: add iperf_api semaphore on reporter callback

when iperf bi-directional test, freelist array value has been corrupted
due to simultaneous access on it.
 - freelist array is used on __dtoa function called by snprintf
 - it causes data abort during a long-run test
iperf reporter callback function is called by timer interrupt so,
to guarantee completion of it we've added semaphore on reporter callback
function.

Change-Id: Ib0549de6c850008eb825a6d484205c0b84725b6d
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/examples/iperf/iperf.h
apps/examples/iperf/iperf_api.c