Re: Newbie documentation for MIDI
Re: Newbie documentation for MIDI
- Subject: Re: Newbie documentation for MIDI
- From: Kurt Bigler <email@hidden>
- Date: Tue, 26 Nov 2002 16:07:24 -0800
on 11/26/02 12:42 PM, Thomas Hudson <email@hidden> wrote:
>
The approach I used was to use a mach port, which I believe allows
>
stuffing a message into without blocking (using mach_msg). Then in
>
the UI thread, an NSPort can monitor this in the runloop. See
>
NSPort:scheduuleInRunLoop:forMode and NSPort:handleMachMessage.
on 11/26/02 12:36 PM, Michael Thornburgh <email@hidden> wrote:
>
for cross-thread communication, you're _supposed_ to use
>
"Distributed Objects". i've never really bothered trying
>
to figure DO out though. it seems like you have to jump
>
through a mess of nasty looking hoops so you can end up
>
with simple objc messages.
>
>
if i wanted to signal my UI thread from my real-time thread
>
that it should do some drawing for me at some point, i'd
>
use NSPorts and NSPortMessages. here's some simple code
>
to illustrate how to do this (compile at the command line
>
with "cc -framework Foundation filename.m", run with "./a.out"):
[snip]
Any suggestions for how to do this without using objective C?
Thanks,
Kurt Bigler
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.