From 6d636864be30d344497095ddef76b874c5aa5111 Mon Sep 17 00:00:00 2001 From: Sharon Rosner Date: Sat, 22 Jul 2023 07:54:10 +0200 Subject: [PATCH] Debug take 2 --- ext/polyphony/backend_libev.c | 2 ++ ext/polyphony/polyphony_ext.c | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/polyphony/backend_libev.c b/ext/polyphony/backend_libev.c index f12d982a..418c5aa9 100644 --- a/ext/polyphony/backend_libev.c +++ b/ext/polyphony/backend_libev.c @@ -132,7 +132,9 @@ static VALUE Backend_initialize(VALUE self) { // start async watcher used for breaking a poll op (from another thread) ev_async_init(&backend->break_async, break_async_callback); + printf("Backend_initialize 3.1\n"); ev_async_start(backend->ev_loop, &backend->break_async); + printf("Backend_initialize 3.2\n"); // the break_async watcher is unreferenced, in order for Backend_poll to not // block when no other watcher is active ev_unref(backend->ev_loop); diff --git a/ext/polyphony/polyphony_ext.c b/ext/polyphony/polyphony_ext.c index 35253973..aaba1103 100644 --- a/ext/polyphony/polyphony_ext.c +++ b/ext/polyphony/polyphony_ext.c @@ -16,23 +16,17 @@ extern void playground(); #endif void Init_polyphony_ext(void) { - printf("Init_polyphony_ext 1\n"); Init_Polyphony(); - printf("Init_polyphony_ext 2\n"); Init_Backend(); - printf("Init_polyphony_ext 3\n"); Init_Queue(); - printf("Init_polyphony_ext 4\n"); Init_Pipe(); Init_Event(); Init_Fiber(); Init_Thread(); - printf("Init_polyphony_ext 5\n"); Init_IOExtensions(); Init_SocketExtensions(); - printf("Init_polyphony_ext 6\n"); #ifdef POLYPHONY_PLAYGROUND playground();