site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=70lBuDu3xr4gOQnuPsTcBXEUu4gUSnfcFzAyx8me59s=; b=qFCDORdOKRZTA9tQA2+w/LGo3glIyAMqIcNyb70OYqG1Wk+XYgwuZ3JIY6J5sK3bk/ aWhV+jjKvsYByWOhJpc7sENJTbsbPR62IRih5tRp/Bu11HM+9c95ZW6M0vJd/Y7rI2IS iTAOwIhi/MTElH9yPqW7DCON9F6erLFoMuYMc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=kk+vmlGj1JWu3CN289TsagCynGAT4w91syGAxiJ7mQ2sB2FxL7Qv9jpd8n0AXj9lZp dxn8858cQU3veoR778pNR94AjIZfvYqtShHCucC71qfJiB1aqZsE3WFcnFS+AznlkBtq h0Hic/wKCUEt2o+StxvcGukzBGQVvMf2vy00Q= Is it possible to add a notification port as a source in Grand Central Dispatch? I'm looking to replace these three lines of code: gNotifyPort = IONotificationPortCreate(masterPort); runLoopSource = IONotificationPortGetRunLoopSource(gNotifyPort); CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSource, kCFRunLoopDefaultMode); GCD has DISPATCH_SOURCE_TYPE_MACH_RECV and DISPATCH_SOURCE_TYPE_MACH_SEND source types that I can pass to dispatch_source_create(). Can I just pass the notification port as a handle? Thanks, Joel --- http://es.linkedin.com/in/joelreymont _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com