diff -r ffa851df0825 -r 2fb8b9db1c86 symbian-qemu-0.9.1-12/libsdl-trunk/docs/html/sdlcreatemutex.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/symbian-qemu-0.9.1-12/libsdl-trunk/docs/html/sdlcreatemutex.html Fri Jul 31 15:01:17 2009 +0100 @@ -0,0 +1,249 @@ +
SDL_mutex *mut;
+
+mut=SDL_CreateMutex();
+.
+.
+if(SDL_mutexP(mut)==-1){
+ fprintf(stderr, "Couldn't lock mutex\n");
+ exit(-1);
+}
+.
+/* Do stuff while mutex is locked */
+.
+.
+if(SDL_mutexV(mut)==-1){
+ fprintf(stderr, "Couldn't unlock mutex\n");
+ exit(-1);
+}
+
+SDL_DestroyMutex(mut);