summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2015-06-13 00:09:20 +0300
committerMarco Nelissen <marcone@google.com>2015-06-24 20:40:31 +0000
commit7cc1badb1772bb8d607ebc5c1bd4d2ce1fd443fb (patch)
tree57c4fac77271841d17b6f6f0ad9f4124388d4e67 /test
parent1f2d0129ef50caf4aca2d9e042cff9ecfa2e0668 (diff)
downloadandroid_external_libavc-7cc1badb1772bb8d607ebc5c1bd4d2ce1fd443fb.tar.gz
android_external_libavc-7cc1badb1772bb8d607ebc5c1bd4d2ce1fd443fb.tar.bz2
android_external_libavc-7cc1badb1772bb8d607ebc5c1bd4d2ce1fd443fb.zip
Remove unnecessary calls to ithread_exit
The ithread_exit wrapper function behaves inconsistently across platforms; on windows, the argument is a thread handle, denoting the thread that will be exited. On pthreads, ithread_exit only terminates the current thread, not any other thread. These both calls are at the end of each thread function (and the one with a non-null parameter refers to the handle of the thread itself), so the thread will exit immediately anyway. Change-Id: I21e43c56874729452bd80b28ff351e3c5d3f087e
Diffstat (limited to 'test')
-rw-r--r--test/decoder/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/decoder/main.c b/test/decoder/main.c
index 937515e..8c9e885 100644
--- a/test/decoder/main.c
+++ b/test/decoder/main.c
@@ -1612,9 +1612,6 @@ WORD32 display_thread(void *pv_ctx)
}
ps_app_ctx->disp_deinit(ps_app_ctx->pv_disp_ctx);
- /* destroy the display thread */
- ithread_exit(ps_app_ctx->display_thread_handle);
-
return 0;
}