• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Threads


  • Subject: Threads
  • From: Pascal Goguey <email@hidden>
  • Date: Sun, 30 Jun 2002 02:40:33 +0900

Hello!

I am trying to build a MIDI application with CW8.
Basically, what I have experimented works (I can send
MIDI commands in response to GUI actions, and I can
receive MIDI packets.
I have used the sample code named "Echo.cpp", which
is easy to adapt to CW8.

Now, I have one problem: starting the receive loop
with CFRunLoopRun blocks, so I thought I should
run it in its own thread.

Does anybody have some sample code with threads?

The .h is as follows.

LSimpleThread(
ThreadProc proc,
void* arg,
Boolean isPreemptive = false,
UInt32 stackSize = thread_DefaultStack,
LThread::EThreadOption flags = threadOption_Default);


I tried: MyThread = new LSimpleThread(CFRunLoopRun);

and also MyThread = new LSimpleThread(CFRunLoopRun, NULL);

but the compiler says it does not match the prototype.

Can anybody tell me how to start a thread or point me to some sample
code?

Thanks,

Pascal
_______________________________________________
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.

  • Prev by Date: Audio Unit host app
  • Next by Date: MIDI driver debug
  • Previous by thread: Re: Audio Unit host app
  • Next by thread: java coreaudio, missing methods
  • Index(es):
    • Date
    • Thread