OSDN Git Service

Mix_AllocateChannels 新しい説明の訳に差し替え
[sdl2referencejp/sdl2referencejp.git] / SDL_CreateMutex.html
index 856d93f..ad9f07e 100644 (file)
@@ -26,7 +26,7 @@ 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
@@ -34,13 +34,26 @@ if (SDL_LockMutex(mutex) == 0) {
     /* \82±\82±\82Åmutex\82ª\83\8d\83b\83N\82³\82ê\82Ä\82¢\82é\8aÔ\82Ì\8f\88\97\9d\82ð\82·\82é */\r
     SDL_UnlockMutex(mutex);\r
 } else {\r
-    fprintf(stderr, "mutex\82ð\83\8d\83b\83N\82Å\82«\82È\82©\82Á\82½\n");\r
+    SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "mutex\82ð\83\8d\83b\83N\82Å\82«\82È\82©\82Á\82½\n");\r
 }\r
 \r
 SDL_DestroyMutex(mutex);\r
 </pre>\r
 </code>\r
 </p>\r
+<h2>\8fÚ\8d×</h2>\r
+<p>\r
+\90V\82µ\82­\90\90¬\82³\82ê\82½mutex\82Í, \91S\82Ä\83A\83\93\83\8d\83b\83N\82Ì\8fó\91Ô\82©\82ç\8en\82Ü\82é.\r
+</p>\r
+<p>\r
+\91¼\82Ì\83X\83\8c\83b\83h\82Å\8aù\82É\83\8d\83b\83N\82³\82ê\82Ä\82¢\82é\8aÔ\82Í<a href="SDL_LockMutex.html">SDL_LockMutex()</a>\82©\82ç\96ß\82ç\82È\82¢.\r
+\83u\83\8d\83b\83N\82¹\82¸\82É\83\8d\83b\83N\82ð\8e\8e\82Ý\82½\82¢\8fê\8d\87\82Í<a href="SDL_TryLockMutex.html">SDL_TryLockMutex()</a>\82ð\8eg\82¤\82±\82Æ.\r
+</p>\r
+<p>\r
+SDL\82Ìmutex\82Í\83\8a\83G\83\93\83g\83\89\83\93\83g(\8dÄ\93ü\89Â\94\)\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_DestroyMutex.html">SDL_DestroyMutex</a><br>\r
 <a href="SDL_LockMutex.html">SDL_LockMutex</a><br>\r