summaryrefslogtreecommitdiff
path: root/libvxi11client/perlbits
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-19 03:32:40 +0900
committerdaniel <danieruru@gmail.com>2013-01-19 03:32:40 +0900
commitd5bd5c44706dffd9977f1cbf9dd6ca4860bbb37d (patch)
tree51d1acaf8ca7e2bfaa8cafb26ec41eff47f3c52f /libvxi11client/perlbits
parent4e01ae716c25937daa7d1c82e6d0da8fdd0ad857 (diff)
use fancy glib stuff to wait for the interrupt thread to start instead of spinning
Diffstat (limited to 'libvxi11client/perlbits')
-rw-r--r--libvxi11client/perlbits/perlglue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvxi11client/perlbits/perlglue.c b/libvxi11client/perlbits/perlglue.c
index 902f915..dec97c2 100644
--- a/libvxi11client/perlbits/perlglue.c
+++ b/libvxi11client/perlbits/perlglue.c
@@ -43,6 +43,7 @@ VXI11Context* glue_open(char* address, char* device) {
int glue_start_interrupt_server() {
interruptqueue = g_async_queue_new();
+ g_async_queue_ref(interruptqueue);
return vxi11_start_interrupt_server(interruptcallback);
}
@@ -54,7 +55,7 @@ int glue_stop_interrupt_server() {
freeevent(event);
}
freelast();
- g_free(interruptqueue);
+ g_async_queue_unref(interruptqueue);
return ret;
}