diff options
author | Martin Storsjo <martin@martin.st> | 2015-06-13 11:23:30 +0300 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2015-06-25 08:25:45 -0700 |
commit | 3806807d7073674e590bf3bd3e6e376d803587c8 (patch) | |
tree | e381c72717b0dd793e00e3aefdf2b42659a32359 /common | |
parent | 796c0d475a8863695d750417dcb7df720139455f (diff) | |
download | android_external_libavc-3806807d7073674e590bf3bd3e6e376d803587c8.tar.gz android_external_libavc-3806807d7073674e590bf3bd3e6e376d803587c8.tar.bz2 android_external_libavc-3806807d7073674e590bf3bd3e6e376d803587c8.zip |
Remove the ithread_exit function
This function is dangerous since it behaved differently on different
platform implementations. It is not used for any actual purpose, and
not currently necessary.
Change-Id: I9702e9943065235c7a7b29dc6c6eeb36212e7ce1
Diffstat (limited to 'common')
-rw-r--r-- | common/ithread.c | 30 | ||||
-rw-r--r-- | common/ithread.h | 3 |
2 files changed, 0 insertions, 33 deletions
diff --git a/common/ithread.c b/common/ithread.c index 25a8cd0..8d54070 100644 --- a/common/ithread.c +++ b/common/ithread.c @@ -131,26 +131,6 @@ WORD32 ithread_join(void *thread_handle, void ** val_ptr) return 0; } -void ithread_exit(void *thread_handle) -{ - HANDLE *ppv_thread_handle; - HANDLE thread_handle_value; - DWORD thread_exit_code; - - if(0 == thread_handle) - return; - - ppv_thread_handle = (HANDLE *)thread_handle; - thread_handle_value = *ppv_thread_handle; - /* Get exit code for thread. If the return value is 0, means thread is busy */ - if( 0 != GetExitCodeThread(thread_handle_value, &thread_exit_code)) - { - TerminateThread(thread_handle_value, thread_exit_code); - } - - return; -} - WORD32 ithread_get_mutex_struct_size(void) { return (sizeof(HANDLE)); @@ -358,11 +338,6 @@ WORD32 ithread_join(void *thread_handle, void ** val_ptr) return pthread_join(*pthread_handle, NULL); } -void ithread_exit(void *val_ptr) -{ - return pthread_exit(val_ptr); -} - WORD32 ithread_get_mutex_struct_size(void) { return(sizeof(pthread_mutex_t)); @@ -513,11 +488,6 @@ WORD32 ithread_join(void *thread_handle, void ** val_ptr) return 0; } -void ithread_exit(void *val_ptr) -{ - return; -} - WORD32 ithread_mutex_init(void *mutex) { return 0; diff --git a/common/ithread.h b/common/ithread.h index f926f83..3e5aa9c 100644 --- a/common/ithread.h +++ b/common/ithread.h @@ -29,7 +29,6 @@ /* List of Functions : ithread_get_handle_size */ /* ithread_get_mutex_lock_size */ /* ithread_create */ -/* ithread_exit */ /* ithread_join */ /* ithread_get_mutex_struct_size */ /* ithread_mutex_init */ @@ -65,8 +64,6 @@ UWORD32 ithread_get_mutex_lock_size(void); WORD32 ithread_create(void *thread_handle, void *attribute, void *strt, void *argument); -void ithread_exit(void *val_ptr); - WORD32 ithread_join(void *thread_id, void ** val_ptr); WORD32 ithread_get_mutex_struct_size(void); |