Created
January 13, 2013 06:06
-
-
Save caughtinflux/4522600 to your computer and use it in GitHub Desktop.
CFMessagePort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_localMessagePort = CFMessagePortCreateLocal(kCFAllocatorDefault, CFSTR(kLocalMessagePortName), callbackHandler, NULL, false); | |
CFMessagePortSetDispatchQueue(_localMessagePort, _callbackQueue); | |
CFRunLoopSourceRef localRunLoopSource = CFMessagePortCreateRunLoopSource(kCFAllocatorDefault, _localMessagePort, 0); // this function is returning NULL | |
CFRunLoopAddSource(CFRunLoopGetCurrent(), localRunLoopSource, kCFRunLoopCommonModes); | |
CFRelease(localRunLoopSource); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment