Lines Matching defs:source
2988 dispatch_source_t source;
2998 // create dispatch source to handle DNS reply
2999 source = dispatch_source_create(DISPATCH_SOURCE_TYPE_MACH_RECV,
3003 if (source == NULL) {
3010 // reply to our async DNS query. Because the source handler runs asychronously
3015 dispatch_set_context(source, (void *)target);
3016 dispatch_set_finalizer_f(source, (dispatch_function_t)CFRelease);
3018 dispatch_source_set_event_handler(source, ^{
3054 dispatch_source_cancel(source);
3057 dispatch_source_set_cancel_handler(source, ^{
3067 mp = (mach_port_t)dispatch_source_get_handle(source);
3087 dispatch_release(source);
3090 targetPrivate->dnsSource = source;
3091 dispatch_resume(source);