|
From: Andres T. <and...@ta...> - 2015-03-25 14:59:19
|
Hi, I'm doing wrapping of functions from pthread.h library.
For example this is a wrapper:
-------------------------------------------------------------------------------------------------------
static int I_WRAP_SONAME_FNNAME_ZZ(libpthreadZdsoZd0, pthreadZucreateZAZa)
(pthread_t *thread, const pthread_attr_t *attr, void
*(*start) (void*), void *arg)
{
printf("call: ptrhead_create\n");
int result;
OrigFn fn;
VALGRIND_GET_ORIG_FN(fn);
CALL_FN_W_WWWW(result, fn, thread, attr, start, arg);
return result;
}
------------------------------------------------------------------------------------------------------
In C works fine but in C++ doen't wrap pthread_create. I don't know
why because in pthread.h the functions are declared as extern c so I
shouldn't have problems with that.
I'm working with valgrind 3.10.1
Regards,
Andres.
|