From: Bart Van Assche Date: Tue, 9 May 2017 04:44:25 +0000 (+0000) Subject: drd: Rename a function X-Git-Tag: svn/VALGRIND_3_13_0~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06c6edda5ec0b25893b55d7f09725981759db34c;p=thirdparty%2Fvalgrind.git drd: Rename a function git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16341 --- diff --git a/drd/drd_pthread_intercepts.c b/drd/drd_pthread_intercepts.c index c17ffcec32..e5078eec5d 100644 --- a/drd/drd_pthread_intercepts.c +++ b/drd/drd_pthread_intercepts.c @@ -228,7 +228,7 @@ typedef struct static void DRD_(init)(void) __attribute__((constructor)); static void DRD_(check_threading_library)(void); -static void DRD_(set_main_thread_state)(void); +static void DRD_(set_pthread_id)(void); static void DRD_(sema_init)(DrdSema* sema); static void DRD_(sema_destroy)(DrdSema* sema); static void DRD_(sema_down)(DrdSema* sema); @@ -250,7 +250,7 @@ static void DRD_(sema_up)(DrdSema* sema); static void DRD_(init)(void) { DRD_(check_threading_library)(); - DRD_(set_main_thread_state)(); + DRD_(set_pthread_id)(); #if defined(VGO_solaris) if ((DRD_(rtld_bind_guard) == NULL) || (DRD_(rtld_bind_clear) == NULL)) { fprintf(stderr, @@ -501,12 +501,10 @@ static void DRD_(check_threading_library)(void) } /** - * The main thread is the only thread not created by pthread_create(). - * Update DRD's state information about the main thread. + * Update DRD's state information about the current thread. */ -static void DRD_(set_main_thread_state)(void) +static void DRD_(set_pthread_id)(void) { - // Make sure that DRD knows about the main thread's POSIX thread ID. VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__SET_PTHREADID, pthread_self(), 0, 0, 0, 0); }