p4raw-id: //depot/ansiperl@334
void
Perl_setTHR(struct perl_thread *t)
{
+#ifdef USE_THREADS
#ifdef USE_DECLSPEC_THREAD
Perl_current_thread = t;
#else
TlsSetValue(thr_key,t);
#endif
+#endif
}
struct perl_thread *
Perl_getTHR(void)
{
+#ifdef USE_THREADS
#ifdef USE_DECLSPEC_THREAD
return Perl_current_thread;
#else
return (struct perl_thread *) TlsGetValue(thr_key);
#endif
+#else
+ return NULL;
+#endif
}
void