Changeset 44976fe


Ignore:
Timestamp:
May 30, 2011, 10:27:31 PM (13 years ago)
Author:
Adam Glasgall <glasgall@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
cc305b5
Parents:
259e60a8
git-author:
Adam Glasgall <adam@crossproduct.net> (03/09/11 14:43:05)
git-committer:
Adam Glasgall <glasgall@mit.edu> (05/30/11 22:27:31)
Message:
Make owl_select_post_task take a context argument

Make owl_select_post_task take a context argument to indicate /which/ running mainloop it should run the task on, since now there's more than one.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r6476c0e r44976fe  
    383383  /* Send a message to the main thread. */
    384384  owl_select_post_task(sig_handler_main_thread,
    385                        GINT_TO_POINTER(siginfo->si_signo), NULL);
     385                       GINT_TO_POINTER(siginfo->si_signo),
     386                       NULL, g_main_context_default());
    386387}
    387388
  • select.c

    r33b6431b r44976fe  
    22
    33static GMainLoop *loop = NULL;
    4 static GMainContext *context;
     4static GMainContext *main_context;
    55static int dispatch_active = 0;
    66
     
    344344void owl_select_run_loop(void)
    345345{
    346   context = g_main_context_default();
    347   loop = g_main_loop_new(context, FALSE);
     346  main_context = g_main_context_default();
     347  loop = g_main_loop_new(main_context, FALSE);
    348348  g_main_loop_run(loop);
    349349}
     
    379379}
    380380
    381 void owl_select_post_task(void (*cb)(void*), void *cbdata, void (*destroy_cbdata)(void*))
     381void owl_select_post_task(void (*cb)(void*), void *cbdata, void (*destroy_cbdata)(void*), GMainContext *context)
    382382{
    383383  GSource *source = g_idle_source_new();
Note: See TracChangeset for help on using the changeset viewer.