Skip to main content
GameDev.net gamedev.net
🔒 Locked

Running code in it's own thread?

Started by utilae Mar 16, 2005 at 9:26 PM 1 replies 400+ views
Original Post
utilae
utilae
Hi, I found some code for playing MP3s using DirectShow (and C++). Only problem is that it needs to play in a different thread. How do you make a function/class run in a different thread?
HTML5, iOS and Android Game Development using Corona SDK and moai SDK
lucinpub
lucinpub
You will need a threading library, whether it is the standard win32 stuff or boost or one of the probably dozens of others. I recommend boost. Check www.boost.org
Lucas Henekswww.ionforge.com
mrmrcoleman
mrmrcoleman
It may be that you are confused over this, DirectShow uses lots of other threads for doing what it does and very rarely do you have to think about creating them yourself. Although without seeing your code I can't be sure of this.

Kind regards,

Mark Coleman

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.