274e11519ba1c8f46483b065400134ae61ef0556
[platform/upstream/libvorbis.git] / doc / vorbisfile / threads.html
1 <html>
2
3 <head>
4 <title>Vorbisfile - Thread Safety</title>
5 <link rel=stylesheet href="style.css" type="text/css">
6 </head>
7
8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9 <table border=0 width=100%>
10 <tr>
11 <td><p class=tiny>Vorbisfile documentation</p></td>
12 <td align=right><p class=tiny>vorbisfile version 1.3.2 - 20101101</p></td>
13 </tr>
14 </table>
15
16 <h1>Thread Safety</h1>
17
18 Vorbisfile's libvorbisfile may be used safely in a threading environment
19 so long as thread access to individual <a
20 href="OggVorbis_File.html">OggVorbis_File</a> instances is serialized.  
21 <ul>
22
23 <li>Only one thread at a time may enter a function that takes a given <a
24 href="OggVorbis_File.html">OggVorbis_File</a> instance, even if the
25 functions involved appear to be read-only.<p>
26
27 <li>Multiple threads may enter
28 libvorbisfile at a given time, so long as each thread's function calls
29 are using different <a href="OggVorbis_File.html">OggVorbis_File</a>
30 instances. <p>
31
32 <li>Any one <a
33 href="OggVorbis_File.html">OggVorbis_File</a> instance may be used safely from multiple threads so long as only one thread at a time is making calls using that instance.<p>
34 </ul>
35
36 <br><br>
37 <hr noshade>
38 <table border=0 width=100%>
39 <tr valign=top>
40 <td><p class=tiny>copyright &copy; 2000-2010 Xiph.Org</p></td>
41 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
42 </tr><tr>
43 <td><p class=tiny>Vorbisfile documentation</p></td>
44 <td align=right><p class=tiny>vorbisfile version 1.3.2 - 20101101</p></td>
45 </tr>
46 </table>
47
48 </body>
49
50 </html>