Changeset 44976fe
- Timestamp:
- May 30, 2011, 10:27:31 PM (14 years ago)
- 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)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
r6476c0e r44976fe 383 383 /* Send a message to the main thread. */ 384 384 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()); 386 387 } 387 388 -
select.c
r33b6431b r44976fe 2 2 3 3 static GMainLoop *loop = NULL; 4 static GMainContext * context;4 static GMainContext *main_context; 5 5 static int dispatch_active = 0; 6 6 … … 344 344 void owl_select_run_loop(void) 345 345 { 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); 348 348 g_main_loop_run(loop); 349 349 } … … 379 379 } 380 380 381 void owl_select_post_task(void (*cb)(void*), void *cbdata, void (*destroy_cbdata)(void*) )381 void owl_select_post_task(void (*cb)(void*), void *cbdata, void (*destroy_cbdata)(void*), GMainContext *context) 382 382 { 383 383 GSource *source = g_idle_source_new();
Note: See TracChangeset
for help on using the changeset viewer.