projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bc19bd
)
Call ensure_synch_cs_set () in thread_cleanup () too, it is needed when disposing...
author
Zoltan Varga
<vargaz@gmail.com>
Mon, 19 Sep 2011 23:38:55 +0000
(
01:38
+0200)
committer
Zoltan Varga
<vargaz@gmail.com>
Tue, 20 Sep 2011 01:55:37 +0000
(
03:55
+0200)
mono/metadata/threads.c
patch
|
blob
|
history
diff --git
a/mono/metadata/threads.c
b/mono/metadata/threads.c
index cd2d82afa093e154e215ef7ddef44467d8cbe9e8..422dff84d531a2ea06ab741bdcfda7e2b8196a24 100644
(file)
--- a/
mono/metadata/threads.c
+++ b/
mono/metadata/threads.c
@@
-368,6
+368,8
@@
static void thread_cleanup (MonoInternalThread *thread)
}
mono_release_type_locks (thread);
+ ensure_synch_cs_set (thread);
+
EnterCriticalSection (thread->synch_cs);
thread->state |= ThreadState_Stopped;