From 3c75a78aa006b1f51e6b053f1edbf8f19ccbcb8f Mon Sep 17 00:00:00 2001 From: Mystery Man Date: Mon, 14 Apr 2003 13:30:58 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'V1_1_9_54mdk'. --- .../dietlibc/libpthread/pthread_cleanup_pop.c | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 mdk-stage1/dietlibc/libpthread/pthread_cleanup_pop.c (limited to 'mdk-stage1/dietlibc/libpthread/pthread_cleanup_pop.c') diff --git a/mdk-stage1/dietlibc/libpthread/pthread_cleanup_pop.c b/mdk-stage1/dietlibc/libpthread/pthread_cleanup_pop.c deleted file mode 100644 index 641bb6083..000000000 --- a/mdk-stage1/dietlibc/libpthread/pthread_cleanup_pop.c +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include - -#include -#include "thread_internal.h" - -void pthread_cleanup_pop(int execute) -{ - _pthread_descr this; - struct thread_cleanup_t tmp; - int i=PTHREAD_MAX_CLEANUP; - - __THREAD_INIT(); - - this = __thread_self(); - - while(i>0) { - if (this->cleanup_stack[--i].func) { - tmp.func=this->cleanup_stack[i].func; - tmp.arg=this->cleanup_stack[i].arg; - this->cleanup_stack[i].func=0; - break; - } - } - - if (execute) tmp.func(tmp.arg); -} -- cgit v1.2.1