1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="CategoryMutex.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_DestroyMutex</title>
\r
12 <a href="index.html">
\96Ú
\8e\9f</a> - <a href="ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="CategoryMutex.html">
\93¯
\8aú
\83v
\83\8a\83~
\83e
\83B
\83u</a> - SDL_DestroyMutex
\r
14 <h1>SDL_DestroyMutex</h1>
\r
15 mutex
\82ð
\94j
\8aü
\82·
\82é
\r
17 <code>void SDL_DestroyMutex(SDL_mutex* mutex)</code>
\r
19 <table border="1" summary="SDL_DestroyMutex">
\r
20 <tr><td>mutex</td><td>
\94j
\8aü
\82·
\82émutex</td></tr>
\r
22 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
28 mutex = SDL_CreateMutex();
\r
30 fprintf(stderr, "mutex
\82ð
\90¶
\90¬
\82Å
\82«
\82È
\82©
\82Á
\82½\n");
\r
34 if (SDL_LockMutex(mutex) == 0) {
\r
35 /*
\82±
\82±
\82Åmutex
\82ª
\83\8d\83b
\83N
\82³
\82ê
\82Ä
\82¢
\82é
\8aÔ
\82Ì
\8f\88\97\9d\82ð
\82·
\82é */
\r
36 SDL_UnlockMutex(mutex);
\r
38 fprintf(stderr, "mutex
\82ð
\83\8d\83b
\83N
\82Å
\82«
\82È
\82©
\82Á
\82½\n");
\r
41 SDL_DestroyMutex(mutex);
\r
46 \95K
\97v
\82È
\82
\82È
\82Á
\82½mutex
\82Í
\82±
\82Ì
\8aÖ
\90\94\82ð
\8cÄ
\82ñ
\82Å
\94j
\8aü
\82·
\82é
\95K
\97v
\82ª
\82 \82é.
\r
47 mutex
\82ð
\94j
\8aü
\82µ
\82È
\82¢
\82Æ,
\83V
\83X
\83e
\83\80\83\81\83\82\83\8a\82â
\83\8a\83\
\81[
\83X
\82Ì
\83\8a\81[
\83N
\82ð
\88ø
\82«
\8bN
\82±
\82·
\82±
\82Æ
\82ª
\82 \82é.
\r
48 \83\8d\83b
\83N
\82³
\82ê
\82Ä
\82¢
\82È
\82¢mutex
\82Í
\88À
\91S
\82É
\94j
\8aü
\82Å
\82«
\82é.
\83\8d\83b
\83N
\82³
\82ê
\82½mutex
\82ð
\94j
\8aü
\82·
\82é
\82Ì
\82Í
\88À
\91S
\82Å
\82È
\82¢.
\82»
\82ê
\82Í
\8aÂ
\8b«
\82É
\88Ë
\91¶
\82µ
\82½
\92è
\8b`
\82³
\82ê
\82È
\82¢
\90U
\82é
\95\91\82¢
\82ð
\88ø
\82«
\8bN
\82±
\82·
\82±
\82Æ
\82ª
\82 \82é.
\r
49 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
50 <a href="SDL_CreateMutex.html">SDL_CreateMutex</a><br>
\r
51 <a href="SDL_LockMutex.html">SDL_LockMutex</a><br>
\r
52 <a href="SDL_TryLockMutex.html">SDL_TryLockMutex</a><br>
\r
53 <a href="SDL_UnlockMutex.html">SDL_UnlockMutex</a><br>
\r
54 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
55 <a href="https://wiki.libsdl.org/SDL_DestroyMutex">SDL_DestroyMutex - SDL Wiki</a>
\r