OSDN Git Service

Mix_FadeInChannel 新しい説明の訳に差し替え
[sdl2referencejp/sdl2referencejp.git] / SDL_TryLockMutex.html
index 7b19ab9..37bc26d 100644 (file)
@@ -31,30 +31,39 @@ SDL_mutex *mutex;
 \r
 mutex = SDL_CreateMutex();\r
 if (!mutex) {\r
-  fprintf(stderr, "mutex\82ð\90\90¬\82Å\82«\82È\82©\82Á\82½\n");\r
+  SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "mutex\82ð\90\90¬\82Å\82«\82È\82©\82Á\82½\n");\r
   return;\r
 }\r
 \r
 status = SDL_TryLockMutex(mutex);\r
 \r
 if (status == 0) {\r
-    printf("mutex\82ð\83\8d\83b\83N\82µ\82½\n");\r
+    SDL_Log("mutex\82ð\83\8d\83b\83N\82µ\82½\n");\r
     SDL_UnlockMutex(mutex);\r
 } else if (status == SDL_MUTEX_TIMEDOUT) {\r
     /* \8d¡\82Ímutex\82ð\83\8d\83b\83N\82Å\82«\82È\82¢ */\r
 } else {\r
-    fprintf(stderr, "mutex\82ð\83\8d\83b\83N\82Å\82«\82È\82©\82Á\82½\n");\r
+    SDL_LogError(stderr, "mutex\82ð\83\8d\83b\83N\82Å\82«\82È\82©\82Á\82½\n");\r
 }\r
 \r
-SDL_DestroyMutex(mutex)\r
+SDL_DestroyMutex(mutex);\r
 </pre>\r
 </code>\r
 </p>\r
+<h2>\8fÚ\8d×</h2>\r
+<p>\r
+\82±\82Ì\8aÖ\90\94\82Í<a href="SDL_LockMutex.html">SDL_LockMutex()</a>\82Æ\8e\97\82Ä\82¢\82é\82ª, mutex\82ª\8eg\82¦\82È\82¢\8fê\8d\87\91¦\8dÀ\82ÉSDL_MUTEX_TIMEOUT\82ð\96ß\82·.\r
+</p>\r
+<p>\r
+\82±\82ê\82Í\8e\91\8c¹\82ð\94r\91¼\93I\82É\83A\83N\83Z\83X\82µ\82½\82¢\82ª\91Ò\82Â\82±\82Æ\82ª\82Å\82«\82È\82¢\8fê\8d\87\82É\97L\97p\82Å, \82»\82Ì\8fê\8d\87\82Í\8cã\82Å\8dÄ\82Ñ\8e\8e\82Ý\82é\82±\82Æ\82É\82È\82é.\r
+</p>\r
+<h2>\83o\81[\83W\83\87\83\93</h2>\r
+SDL 2.0.0\88È\8d~\r
 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>\r
-<a href="SDL_LockMutex.html">SDL_LockMutex</a><br>\r
-<a href="SDL_UnlockMutex.html">SDL_UnlockMutex</a><br>\r
 <a href="SDL_CreateMutex.html">SDL_CreateMutex</a><br>\r
 <a href="SDL_DestroyMutex.html">SDL_DestroyMutex</a><br>\r
+<a href="SDL_LockMutex.html">SDL_LockMutex</a><br>\r
+<a href="SDL_UnlockMutex.html">SDL_UnlockMutex</a><br>\r
 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r
 <a href="https://wiki.libsdl.org/SDL_TryLockMutex">SDL_TryLockMutex - SDL Wiki</a>\r
 <hr>\r