diff options
author | Koushik Dutta <koushd@gmail.com> | 2010-09-30 08:15:42 +0400 |
---|---|---|
committer | Geoff Norton <grompf@sublimeintervention.com> | 2010-10-01 20:33:18 +0400 |
commit | c45cae8a26d869dc9db7513f0564229189ae03f7 (patch) | |
tree | a23cb453e48ea565b17eba17e3067116f788e673 /libgc/include | |
parent | 0e8579212966de44911c628212ac321538890e9d (diff) |
Work around Android's pthread/kernel_id/fork bug to fix mono multithreading and GC_stop_world in processes that have been forked.
Diffstat (limited to 'libgc/include')
-rw-r--r-- | libgc/include/private/pthread_support.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgc/include/private/pthread_support.h b/libgc/include/private/pthread_support.h index c2c48c22e01..ec53e46fc45 100644 --- a/libgc/include/private/pthread_support.h +++ b/libgc/include/private/pthread_support.h @@ -26,6 +26,9 @@ typedef struct GC_Thread_Rep { /* guaranteed to be dead, but we may */ /* not yet have registered the join.) */ pthread_t id; +#ifdef PLATFORM_ANDROID + pid_t kernel_id; +#endif /* Extra bookkeeping information the stopping code uses */ struct thread_stop_info stop_info; |