summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--milkway/mw-main-context.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/milkway/mw-main-context.c b/milkway/mw-main-context.c
index 5de854a..8e0be8c 100644
--- a/milkway/mw-main-context.c
+++ b/milkway/mw-main-context.c
@@ -268,7 +268,11 @@ mw_main_context_init (mw_main_context_t *context)
mw_static_mutex_init (&context->mutex);
context->owner = NULL;
+ context->owner_count = 0;
context->waiters = NULL;
+ context->cond = NULL;
+
+ context->in_check_or_prepare = MW_FALSE;
# ifndef MW_OS_WINDOWS
context->wake_up_pipe[0] = -1;
@@ -284,6 +288,11 @@ mw_main_context_init (mw_main_context_t *context)
context->cached_poll_array = NULL;
context->cached_poll_array_size = 0;
+ context->poll_records = NULL;
+ context->n_poll_records = 0;
+
+ context->poll_waiting = MW_FALSE;
+
context->pending_dispatches = mw_ptr_array_new ();
context->time_is_current = MW_FALSE;