Lines Matching refs:runloop
313 CFRunLoopRef runloop;
335 runloop = CFRunLoopGetCurrent ();
336 CFRetain (runloop);
341 CFRunLoopAddSource(runloop, libusb_notification_cfsource, kCFRunLoopDefaultMode);
373 /* signal the main thread that the hotplug runloop has been created. */
375 libusb_darwin_acfl = runloop;
379 /* run the runloop */
385 CFRunLoopRemoveSource(runloop, libusb_notification_cfsource, kCFRunLoopDefaultMode);
394 CFRelease (runloop);
450 /* stop the event runloop and wait for the thread to terminate. */