Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2010-09-30 08:15:42 +0400
committerGeoff Norton <grompf@sublimeintervention.com>2010-10-01 20:33:18 +0400
commitc45cae8a26d869dc9db7513f0564229189ae03f7 (patch)
treea23cb453e48ea565b17eba17e3067116f788e673 /libgc/include
parent0e8579212966de44911c628212ac321538890e9d (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.h3
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;