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.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to