10 #include <win32thread.h>
17 PerlInterpreter *interp; /* The threads interpreter */
18 I32 tid; /* Our thread */
19 perl_mutex mutex; /* our mutex */
20 I32 count; /* how many threads have a reference to us */
21 signed char detached; /* are we detached ? */
34 static perl_mutex create_mutex; /* protects the creation of threads ??? */
46 /* internal functions */
48 THREAD_RET_TYPE Perl_thread_run(LPVOID arg);
50 void* Perl_thread_run(void * arg);
52 void Perl_thread_destruct(ithread* thread);
54 /* Perl mapped functions to iThread:: */
55 SV* Perl_thread_create(char* class, SV* function_to_call, SV* params);
56 I32 Perl_thread_tid (SV* obj);
57 void Perl_thread_join(SV* obj);
58 void Perl_thread_detach(SV* obj);
59 SV* Perl_thread_self (char* class);