diff options
author | jonas <jonas@localhost> | 2009-07-02 11:59:30 +0400 |
---|---|---|
committer | jonas <jonas@localhost> | 2009-07-02 11:59:30 +0400 |
commit | 26045ec0b2807fb7f4969299be12b33b0aaf93eb (patch) | |
tree | f50c03bdc945dfa6878a7e8633329bc5f93d7235 /libgc/pthread_support.c | |
parent | 3513638089d00b5c8e05cadb05755edebc0870f9 (diff) |
2009-07-02 jonas echterhoff <jonas@unity3d.com>
svn path=/trunk/mono/; revision=137261
Diffstat (limited to 'libgc/pthread_support.c')
-rw-r--r-- | libgc/pthread_support.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libgc/pthread_support.c b/libgc/pthread_support.c index 11d2cd6ad71..46a5f1f469f 100644 --- a/libgc/pthread_support.c +++ b/libgc/pthread_support.c @@ -1010,7 +1010,11 @@ void GC_thr_init() t -> flags = DETACHED | MAIN_THREAD; #ifdef MONO_DEBUGGER_SUPPORTED if (gc_thread_vtable && gc_thread_vtable->thread_created) - gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr); +# ifdef GC_DARWIN_THREADS + gc_thread_vtable->thread_created (mach_thread_self (), &t->stop_info.stack_ptr); +# else + gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr); +# endif #endif GC_stop_init(); @@ -1324,7 +1328,11 @@ void * GC_start_routine_head(void * arg, void *base_addr, # endif /* IA64 */ #ifdef MONO_DEBUGGER_SUPPORTED if (gc_thread_vtable && gc_thread_vtable->thread_created) - gc_thread_vtable->thread_created (my_pthread, &me->stop_info.stack_ptr); +# ifdef GC_DARWIN_THREADS + gc_thread_vtable->thread_created (mach_thread_self(), &me->stop_info.stack_ptr); +# else + gc_thread_vtable->thread_created (my_pthread, &me->stop_info.stack_ptr); +# endif #endif UNLOCK(); |