Re: What is MIDI server waiting for?
Re: What is MIDI server waiting for?
- Subject: Re: What is MIDI server waiting for?
- From: Doug Wyatt <email@hidden>
- Date: Fri, 13 Feb 2004 16:14:36 -0800
Hi Lubor,
The only case in which you should find your app sleeping in
FindOrLaunchServer *before* LaunchServer() is called is if another
client happens to be in the middle of launching the server. But in that
case, your app will never call LaunchServer (you'd get two of them!).
I'd think it more typical for you to encounter some sleeping in the
loop *after* LaunchServer() -- it takes time to load the drivers. I
haven't gone into the code to be sure, but I believe the Mach ports to
connect to the client aren't created until after the drivers are
loaded.
Are you sure the waiting is before LaunchServer and not after?
Is there a zombie MIDIServer process?
I could look into this further given a sample of your app in this state.
Doug
On Feb 10, 2004, at 13:41, Lubor Prikryl wrote:
Hello (Doug),
My application spends several second initializing MIDI.
It calls MIDIClientCreate ... CheckInitialization ... Initialize ...
FindOrLaunchServer ... usleep,
well, and we usleep most of the time. (92% of thread time)
What is MIDI Server waiting for??? (LaunchServer is called after that
waiting).
Thanks
Lubor
_______________________________________________
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.