Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > media > contrib > by-pkgid > 6a008f60192f948b748b09d760d81244 > files > 17

tse3-0.2.7-3mdk.i586.rpm

<html>

  <head>
    <title>Support for multiple threads in TSE3</title>
  </head>
  
<body bgcolor=#ffffff text=#000000>
<table width=100% cellspacing=0 cellpadding=1 border=0 bgcolor=#000000><tr><td>
<table width=100% cellspacing=0 cellpadding=1 border=0><tr><td valign=center bgcolor=#c8d559>
<table width=100% cellspacing=0 cellpadding=0 border=0><tr>
<td align=left width=30%><b>&nbsp;TSE3 documentation<b></td>
<td align=center width=30%>Version 0.2.7</td>
<td align=right width=30%>
  <a href="index.html"><b>Index</b></a>
  <a href="api/index.html">API</a>&nbsp;
  <a href="Version.html">Version</a>&nbsp;
  <a href="Structure.html">Structure</a>&nbsp;
</td>
</tr></table>
</td></tr></table>
</td></tr></table>

    <h1>Support for multiple threads in TSE3</h1>

    <p>
    The TSE3 library provides support for multi-threaded applications and guards its internal data structures against concurrent access by more than one thread.
   
   <p>
   It is possible to disable this support by configuring the code with the <code>--without-mutex</code> configure flag.

    <p>
    The threading support is implemented in the <code>tse3/Mutex.h</code> header file.

    <p>
    Even if the multi-threading support is enabled (as per default) the library will not be thread-safe unless you supply a platform-specific implementation of a <i>mutex</i> (which is a data structure used to prevent concurrent access to critical sections of code). You do this by providing a subclass of the <code>TSE3::Impl::MutexImpl</code> class and providing it to the TSE3 library (using the <code>TSE3::Impl::Mutex</code> class).
   
   <p>
   The KDOC documentation contains clear details on how to do this (look at the MutexImpl and Mutex class. If you have built the TSE3 documentation (see <a href="KDOC.html">here</a> for details) then the following links will take you directly to the documentation:
       <ul>
         <li><a href="api/TSE3__Impl__MutexImpl.html">MutexImpl</a>
         <li><a href="api/TSE3__Impl__Mutex.html">Mutex</a>
       </ul>
    
<body bgcolor=#ffffff text=#000000>
<table width=100% cellspacing=0 cellpadding=1 border=0 bgcolor=#000000><tr><td>
<table width=100% cellspacing=0 cellpadding=1 border=0><tr><td valign=center bgcolor=#c8d559>
<table width=100% cellspacing=0 cellpadding=0 border=0><tr>
<td align=left width=30%>&nbsp;&copy; Pete Goodliffe, 2001-2003</td>
<td align=center width=30%><a href="Copyright.html">Copyright</a></td>
<td align=right width=30%><a href="Psalm150.html">Psalm 150</a>&nbsp;</td>
</tr></table>
</td></tr></table>
</td></tr></table>
    
  </body>

</html>