diff --git a/dialogs.c b/dialogs.c index 527c47af..7dfc5fc0 100644 --- a/dialogs.c +++ b/dialogs.c @@ -498,19 +498,20 @@ static void refresh_usb(void) if (!ctxs) goto nope; -#ifdef __APPLE__ - // Scanning seems to be broken at the moment - goto nope; -#endif - - + printf("filter%s\n", filter); +// pthread_mutex_t lock; +// printf("pthread_mutex_init%s\n", filter); +// pthread_mutex_init(&lock, NULL); +// printf("pthread_mutex_initialized%s\n", filter); ret = iio_scan_context_get_info_list(ctxs, &info); + printf("ret nb ctxs: %d\n", (int)ret); if (ret < 0) goto err_free_ctxs; if (!ret) goto err_free_info_list; for (i = 0; i < (size_t) ret; i++) { + printf("info ctx %s\n", iio_context_info_get_description(info[i])); tmp = strdup(iio_context_info_get_description(info[i])); pid = strdup(iio_context_info_get_description(info[i])); @@ -594,6 +595,8 @@ static void refresh_usb(void) /* Fill things in */ connect_clear(dialogs.connect_usb); +// gdk_threads_enter(); + } #ifdef SERIAL_BACKEND diff --git a/oscmain.c b/oscmain.c index d99816a7..9783ea8a 100644 --- a/oscmain.c +++ b/oscmain.c @@ -242,7 +242,7 @@ gint main (int argc, char **argv) signal(SIGHUP, sigterm); #endif - gdk_threads_enter(); +// gdk_threads_enter(); init_application(); c = load_default_profile(profile, true); if (!ctx_destroyed_by_do_quit) { @@ -258,7 +258,7 @@ gint main (int argc, char **argv) } else application_quit(); } - gdk_threads_leave(); +// gdk_threads_leave(); if (profile) free(profile);