X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-threads.h;h=b30e9ac4c16716c201ce2cb1bf853b177014cadc;hb=675328ef1686ce884326df89f8c570943e2d20d2;hp=f192dd70732e1e6fc42a06395bcad58941879ead;hpb=5f48d9446b1ef7d731b042b1015780f9f86d0e46;p=mono.git diff --git a/mono/utils/mono-threads.h b/mono/utils/mono-threads.h index f192dd70732..b30e9ac4c16 100644 --- a/mono/utils/mono-threads.h +++ b/mono/utils/mono-threads.h @@ -13,9 +13,7 @@ #include #include #include - -/* FIXME used for CRITICAL_SECTION replace with mono-mutex */ -#include +#include #include @@ -98,8 +96,11 @@ typedef struct { MonoNativeThreadHandle native_handle; /* Valid on mach and android */ int thread_state; + /*Tells if this thread was created by the runtime or not.*/ + gboolean runtime_thread; + /* suspend machinery, fields protected by the suspend_lock */ - CRITICAL_SECTION suspend_lock; + mono_mutex_t suspend_lock; int suspend_count; MonoSemType finish_resume_semaphore; @@ -109,6 +110,7 @@ typedef struct { #if (defined(_POSIX_VERSION) || defined(__native_client__)) && !defined (__MACH__) MonoSemType suspend_semaphore; gboolean syscall_break_signal; + gboolean suspend_can_continue; #endif /*In theory, only the posix backend needs this, but having it on mach/win32 simplifies things a lot.*/