svn commit: trunk/uClibc/libpthread/linuxthreads.old
vapier at uclibc.org
vapier at uclibc.org
Thu May 15 02:03:14 UTC 2008
Author: vapier
Date: 2008-05-14 19:03:13 -0700 (Wed, 14 May 2008)
New Revision: 21980
Log:
make sure we store the function pointers to the real push/pop functions rather than the public weak ones so that the libc->libpthread forwarding code is able to work properly
this should fix the case where libpthread.so is not linked directly, but rather via another library:
app -> links to libfoo.so -> links to libpthread.so
and any function (like readdir_r) that does:
__UCLIBC_MUTEX_LOCK()
__UCLIBC_MUTEX_UNLOCK()
Modified:
trunk/uClibc/libpthread/linuxthreads.old/pthread.c
Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/pthread.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/pthread.c 2008-05-14 11:51:04 UTC (rev 21979)
+++ trunk/uClibc/libpthread/linuxthreads.old/pthread.c 2008-05-15 02:03:13 UTC (rev 21980)
@@ -371,8 +371,8 @@
.ptr__pthread_cleanup_push = _pthread_cleanup_push,
.ptr__pthread_cleanup_pop = _pthread_cleanup_pop
*/
- .ptr__pthread_cleanup_push_defer = _pthread_cleanup_push_defer,
- .ptr__pthread_cleanup_pop_restore = _pthread_cleanup_pop_restore,
+ .ptr__pthread_cleanup_push_defer = __pthread_cleanup_push_defer,
+ .ptr__pthread_cleanup_pop_restore = __pthread_cleanup_pop_restore,
};
#ifdef SHARED
# define ptr_pthread_functions &__pthread_functions
More information about the uClibc-cvs
mailing list