Re: wow, this actually works! (Scott Ruda, take note :-)
Re: wow, this actually works! (Scott Ruda, take note :-)
- Subject: Re: wow, this actually works! (Scott Ruda, take note :-)
- From: Pete Gontier <email@hidden>
- Date: Tue, 28 May 2002 16:03:51 -0700
Actually, there may be a decent reason to have that thread lying around all
the time. Thread creation time may cause some latency in your MIDI stream
that you don't like. Having the thread lying around seems acceptable to me
as long as the thread is usually blocked. I would probably have it waiting
on a queue of some sort. The queue elements would tell the thread what to do
next. This is basically the run loop model. It serializes all your work, but
that may be fine for your application. I don't know how you would implement
it in Java, but there must be a way.
circa 5/28/02 1:57 PM, Kenneth Welch <email@hidden> wrote:
>
Bah, I'm an idiot... why have an extra thread active when it's just
>
sitting there looping and eating CPU cycles... just do what Josh said
>
originally Scott, make a new thread whenever you need to run
>
MIDIPort-related commands, maybe pass the constructor a selector to tell
>
it which group of commands to run, and then let it run them and die. Why
>
do I always overlook the simple solution when a more complicated one
>
will do...
>
>
Anyway, sorry for the spam... I'm still a little rusty... haven't done
>
any programming since I got out of college last year... I'll stop
>
posting now, I promise...
>
>
<slinks back into cold dark cave>
>
_______________________________________________
>
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.
--
Pete Gontier -- pete at midiman dot net -- <
http://www.midiman.net/>
_______________________________________________
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.