Line 2:
Line 2:
[https://computing.llnl.gov/tutorials/pthreads/ POSIX Threads Programming] tutorial, it's for pthreads in general so not everything will work with this but it's worth a read.
[https://computing.llnl.gov/tutorials/pthreads/ POSIX Threads Programming] tutorial, it's for pthreads in general so not everything will work with this but it's worth a read.
−
==Bad tutorial by Mavakadachi==
+
== Bad tutorial by Mavakadachi ==
This source compile under windows using the pthread port http://sourceware.org/pthreads-win32/
This source compile under windows using the pthread port http://sourceware.org/pthreads-win32/
Line 66:
Line 66:
{
{
AppClass app;
AppClass app;
−
// bool wantExit=0;
+
// bool wantExit=0;
//dont want to pop and push_back at once, maybe its ok but lets not risk it
//dont want to pop and push_back at once, maybe its ok but lets not risk it
Line 81:
Line 81:
}
}
isDLing = 0;
isDLing = 0;
−
// wantExit = quitOnFinish;
+
// wantExit = quitOnFinish;
pthread_mutex_unlock(&mutex);
pthread_mutex_unlock(&mutex);
//if (wantExit) return iWantToQuit();
//if (wantExit) return iWantToQuit();
Line 249:
Line 249:
break;
break;
}
}
−
// VIDEO_WaitVSync();
+
// VIDEO_WaitVSync();
#endif
#endif
Sleep(10);
Sleep(10);