#define pp_socket Perl_pp_socket
#define pp_sockpair Perl_pp_sockpair
#define pp_sort Perl_pp_sort
-#define pp_specific Perl_pp_specific
#define pp_splice Perl_pp_splice
#define pp_split Perl_pp_split
#define pp_sprintf Perl_pp_sprintf
#define pp_syswrite Perl_pp_syswrite
#define pp_tell Perl_pp_tell
#define pp_telldir Perl_pp_telldir
+#define pp_threadsv Perl_pp_threadsv
#define pp_tie Perl_pp_tie
#define pp_tied Perl_pp_tied
#define pp_time Perl_pp_time
#ifdef HAVE_THREAD_INTERN
init_thread_intern(thr);
+#endif
+
+#ifdef SET_THREAD_SELF
+ SET_THREAD_SELF(thr);
#else
thr->self = pthread_self();
#endif /* HAVE_THREAD_INTERN */
}
void
-init_thread_intern(struct thread *thr)
+Perl_set_thread_self(struct thread *thr)
{
#ifdef USE_THREADS
/* GetCurrentThread() retrurns a pseudo handle, need
START_EXTERN_C
void Perl_alloc_thread_key _((void));
int Perl_thread_create _((struct thread *thr, thread_func_t *fn));
-void Perl_init_thread_intern _((struct thread *thr));
+void Perl_set_thread_self _((struct thread *thr));
END_EXTERN_C
#define INIT_THREADS NOOP
#define ALLOC_THREAD_KEY Perl_alloc_thread_key()
-#define INIT_THREAD_INTERN(thr) Perl_init_thread_intern(thr)
+#define SET_THREAD_SELF(thr) Perl_set_thread_self(thr)
#define JOIN(t, avp) \
STMT_START { \