X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fmonitor.c;h=55dddd39c616f893ead5bfff7bd066eb48cdf842;hb=dc1155ddcf876d543da9a162a69e14d4903d2ac8;hp=be60e07383b8c0ba399a5e6dc12a50f122658dc6;hpb=096265478e6e4145c90250a5bf78c0c179ee50af;p=mono.git diff --git a/mono/metadata/monitor.c b/mono/metadata/monitor.c index be60e07383b..55dddd39c61 100644 --- a/mono/metadata/monitor.c +++ b/mono/metadata/monitor.c @@ -84,6 +84,12 @@ mono_monitor_init (void) { InitializeCriticalSection (&monitor_mutex); } + +void +mono_monitor_cleanup (void) +{ + DeleteCriticalSection (&monitor_mutex); +} /* LOCKING: this is called with monitor_mutex held */ static void @@ -216,7 +222,7 @@ mono_object_hash (MonoObject* obj) } /* * while we are inside this function, the GC will keep this object pinned, - * since we are in the unamanged stack. Thanks to this and to the hash + * since we are in the unmanaged stack. Thanks to this and to the hash * function that depends only on the address, we can ignore the races if * another thread computes the hash at the same time, because it'll end up * with the same value.