Skip to content

Commit

Permalink
Debug take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
noteflakes committed Jul 22, 2023
1 parent dc6c644 commit 6d63686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ext/polyphony/backend_libev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions ext/polyphony/polyphony_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6d63686

Please sign in to comment.