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_DestroyCond</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_DestroyCond
\r
14 <h1>SDL_DestroyCond</h1>
\r
15 \8fð
\8c\8f\95Ï
\90\94\82ð
\94j
\8aü
\82·
\82é
\r
17 <code>void SDL_DestroyCond(SDL_cond* cond)</code>
\r
19 <table border="1" summary="SDL_DestroyCond">
\r
20 <tr><td>cond</td><td>
\94j
\8aü
\82·
\82é
\8fð
\8c\8f\95Ï
\90\94</td></tr>
\r
22 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
24 \8fð
\8c\8f\95Ï
\90\94\82Ì
\93T
\8c^
\93I
\82È
\8eg
\82¢
\95û:
\r
27 SDL_bool condition = SDL_FALSE;
\r
31 lock = SDL_CreateMutex();
\r
32 cond = SDL_CreateCond();
\r
36 SDL_LockMutex(lock);
\r
37 while (!condition) {
\r
38 SDL_CondWait(cond, lock);
\r
40 SDL_UnlockMutex(lock);
\r
43 SDL_LockMutex(lock);
\r
45 condition = SDL_TRUE;
\r
47 SDL_CondSignal(cond);
\r
48 SDL_UnlockMutex(lock);
\r
51 SDL_DestroyCond(cond);
\r
52 SDL_DestroyMutex(lock);
\r
56 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
57 <a href="SDL_CondBroadcast.html">SDL_CondBroadcast</a><br>
\r
58 <a href="SDL_CondSignal.html">SDL_CondSignal</a><br>
\r
59 <a href="SDL_CondWait.html">SDL_CondWait</a><br>
\r
60 <a href="SDL_CondWaitTimeout.html">SDL_CondWaitTimeout</a><br>
\r
61 <a href="SDL_CreateCond.html">SDL_CreateCond</a><br>
\r
62 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
63 <a href="https://wiki.libsdl.org/SDL_DestroyCond">SDL_DestroyCond - SDL Wiki</a>
\r