Re: [2/3 solved] CFMessage woe - was: CFNotificationCenter ./. NSNotificationCenter
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:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=BcsF+r36/N5duhLWRlhEV/f7JF6Hdgf3023x+tlGodg=; b=RdwO+K1197barLdDefPowlSrejJ9ijtbhlZgjPyhboVjDqBB1dgenEqdSDbyo0KJKi CSNVIrVjWKPM6cGRtTcViF1wVG+uNYP8X6WQLTA0T5hvLvqQZa/ncLDjnKVKV7/OQlny 4UIZHhI56h5y8BFaY7u24bEy8p1VGOUx15oZM= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=uhr556rJb+bRKfJy/D4aSpy+Hxn9uwsqToj/upWBll+nSlquTn03drdwJPkBLBuw/F uwPeplDNVASVSRyEcmSIOu57UrB3Ohgy7ttKMHkph1KRjUdncdWgTGd6WHYuWpSwB3Jw Uxn1jwt4/SgOAZ89E/sT9ZX1Y8c1InXQDP1ms= On Mar 2, 2010, at 2:16 AM, Hado Hein wrote: Iceberg-Dev <dev.iceberg@gmail.com> wrote: To communicate between 2 threads, you can use Message Port for instance, they work reliably. It's not the same CFDataRef because: 1) the communication process is not local to the application. _______________________________________________ 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... Thanks, I heard your warnings and moved my code to use CFMessage APIs. They're doing what I want - and that works. Unfortunately I feel a bit lost with one special part of the implementation of the neccessary callbacks for the listening port. I get correct data with wrong CFTypeRefs in my Callback; perhaps one can shed some mileage one this. 2) CFMessagePort relies on Mach port which has no idea what a CFDataRef is. It's only the CFMessagePort wrapping around Mach port which is aware of the CFDataRef "struct". This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev