Missed thread :-> perl_thread changes
Two #define THR (not the same)
K&R style func in hv.c
p4raw-id: //depot/ansiperl@309
}
static void
-hv_magic_check (hv, needs_copy, needs_store)
-HV *hv;
-bool *needs_copy;
-bool *needs_store;
+hv_magic_check (HV *hv, bool *needs_copy, bool *needs_store)
{
MAGIC *mg = SvMAGIC(hv);
*needs_copy = FALSE;
}
+
#include "EXTERN.h"
#include "perl.h"
-__declspec(thread) struct thread *Perl_current_thread = NULL;
+__declspec(thread) struct perl_thread *Perl_current_thread = NULL;
void
-Perl_setTHR(struct thread *t)
+Perl_setTHR(struct perl_thread *t)
{
Perl_current_thread = t;
}
-struct thread *
+struct perl_thread *
Perl_getTHR(void)
{
return Perl_current_thread;
} \
} STMT_END
-#define THR ((struct perl_thread *) TlsGetValue(thr_key))
#define THREAD_CREATE(t, f) Perl_thread_create(t, f)
#define THREAD_POST_CREATE(t) NOOP
#define THREAD_RET_TYPE DWORD WINAPI
START_EXTERN_C
#if defined(PERLDLL) && (!defined(__BORLANDC__) || defined(_DLL))
-extern __declspec(thread) struct thread *Perl_current_thread;
+extern __declspec(thread) struct perl_thread *Perl_current_thread;
#define SET_THR(t) (Perl_current_thread = t)
#define THR Perl_current_thread
#else