Understanding vlc_clone
Posted: 18 Jan 2013 19:54
I've been using the following code to run myfunction() in a different thread. It runs fine on linux, but after cross-compiling, it crashes on windows when it reaches this code.
I preceded the call to vlc_clone with a call to vlc_join to ensure that two instances of myfunction() don't run at the same time. Am I in error? What is the proper way to ensure that two instances do not run at once?
Code: Select all
vlc_thread_t mythread;
void spawn_myfunction() {
vlc_join( mythread, NULL );
vlc_clone( &mythread, myfunction, NULL, VLC_THREAD_PRIORITY_LOW );
}