diff options
Diffstat (limited to 'docs/doxygen/nel/a03473.html')
-rw-r--r-- | docs/doxygen/nel/a03473.html | 250 |
1 files changed, 250 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03473.html b/docs/doxygen/nel/a03473.html new file mode 100644 index 00000000..420469e2 --- /dev/null +++ b/docs/doxygen/nel/a03473.html @@ -0,0 +1,250 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NLMISC::CTDS class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLMISC::CTDS Class Reference</h1><code>#include <<a class="el" href="a06490.html">tds.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Thread dependant storage class<p> +This class provides a thread specific (void*). It is initialized at NULL.<p> +<dl compact><dt><b>Author:</b></dt><dd>Cyril 'Hulud' Corvazier <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2002 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a06490.html#l00046">46</a> of file <a class="el" href="a06490.html">tds.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03473.html#NLMISC_1_1CTDSa0">CTDS</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. The pointer is initialized with NULL. <a href="#NLMISC_1_1CTDSa0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void * </td><td class="memItemRight" valign=bottom><a class="el" href="a03473.html#NLMISC_1_1CTDSa1">getPointer</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the thread specific pointer. <a href="#NLMISC_1_1CTDSa1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03473.html#NLMISC_1_1CTDSa2">setPointer</a> (void *<a class="el" href="a04223.html#a570">pointer</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the thread specific pointer. <a href="#NLMISC_1_1CTDSa2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03473.html#NLMISC_1_1CTDSa3">~CTDS</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#NLMISC_1_1CTDSa3"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>pthread_key_t </td><td class="memItemRight" valign=bottom><a class="el" href="a03473.html#NLMISC_1_1CTDSr0">_Key</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLMISC_1_1CTDSa0" doxytag="NLMISC::CTDS::CTDS" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CTDS::CTDS </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Constructor. The pointer is initialized with NULL. +<p> + +<p> +Definition at line <a class="el" href="a06489.html#l00041">41</a> of file <a class="el" href="a06489.html">tds.cpp</a>. +<p> +<div class="fragment"><pre>00042 { +00043 <span class="comment">/* Please no assert in the constructor because it is called by the NeL memory allocator constructor */</span> +00044 <span class="preprocessor">#ifdef NL_OS_WINDOWS</span> +00045 <span class="preprocessor"></span> _Handle = TlsAlloc (); +00046 TlsSetValue (_Handle, NULL); +00047 <span class="preprocessor">#else // NL_OS_WINDOWS</span> +00048 <span class="preprocessor"></span> <a class="code" href="a03473.html#NLMISC_1_1CTDSr0">_Key</a> = pthread_key_create (&_Key, NULL); +00049 pthread_setspecific(_Key, NULL); +00050 <span class="preprocessor">#endif // NL_OS_WINDOWS</span> +00051 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CTDSa3" doxytag="NLMISC::CTDS::~CTDS" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CTDS::~<a class="el" href="a03473.html">CTDS</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Destructor. +<p> + +<p> +Definition at line <a class="el" href="a06489.html#l00055">55</a> of file <a class="el" href="a06489.html">tds.cpp</a>. +<p> +References <a class="el" href="a05622.html#l00355">nlverify</a>. +<p> +<div class="fragment"><pre>00056 { +00057 <span class="preprocessor">#ifdef NL_OS_WINDOWS</span> +00058 <span class="preprocessor"></span> <a class="code" href="a04199.html#a9">nlverify</a> (TlsFree (_Handle)); +00059 <span class="preprocessor">#else // NL_OS_WINDOWS</span> +00060 <span class="preprocessor"></span> <a class="code" href="a04199.html#a9">nlverify</a> (pthread_key_delete (_Key) == 0); +00061 <span class="preprocessor">#endif // NL_OS_WINDOWS</span> +00062 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLMISC_1_1CTDSa1" doxytag="NLMISC::CTDS::getPointer" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void * NLMISC::CTDS::getPointer </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the thread specific pointer. +<p> + +<p> +Definition at line <a class="el" href="a06489.html#l00066">66</a> of file <a class="el" href="a06489.html">tds.cpp</a>. +<p> +Referenced by <a class="el" href="a05776.html#l02189">NLMISC::CHeapAllocator::debugPopCategoryString()</a>, <a class="el" href="a05776.html#l02173">NLMISC::CHeapAllocator::debugPushCategoryString()</a>, and <a class="el" href="a05480.html#l00050">NLMISC::CBigFile::CThreadFileArray::get()</a>. +<p> +<div class="fragment"><pre>00067 { +00068 <span class="preprocessor">#ifdef NL_OS_WINDOWS</span> +00069 <span class="preprocessor"></span> <span class="keywordflow">return</span> TlsGetValue (_Handle); +00070 <span class="preprocessor">#else // NL_OS_WINDOWS</span> +00071 <span class="preprocessor"></span> <span class="keywordflow">return</span> pthread_getspecific (_Key); +00072 <span class="preprocessor">#endif // NL_OS_WINDOWS</span> +00073 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CTDSa2" doxytag="NLMISC::CTDS::setPointer" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CTDS::setPointer </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void * </td> + <td class="mdname1" valign="top" nowrap> <em>pointer</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the thread specific pointer. +<p> + +<p> +Definition at line <a class="el" href="a06489.html#l00077">77</a> of file <a class="el" href="a06489.html">tds.cpp</a>. +<p> +References <a class="el" href="a05622.html#l00355">nlverify</a>, and <a class="el" href="a05646.html#l00233">pointer</a>. +<p> +Referenced by <a class="el" href="a05776.html#l02189">NLMISC::CHeapAllocator::debugPopCategoryString()</a>, <a class="el" href="a05776.html#l02173">NLMISC::CHeapAllocator::debugPushCategoryString()</a>, and <a class="el" href="a05480.html#l00050">NLMISC::CBigFile::CThreadFileArray::get()</a>. +<p> +<div class="fragment"><pre>00078 { +00079 <span class="preprocessor">#ifdef NL_OS_WINDOWS</span> +00080 <span class="preprocessor"></span> <a class="code" href="a04199.html#a9">nlverify</a> (TlsSetValue (_Handle, pointer)); +00081 <span class="preprocessor">#else // NL_OS_WINDOWS</span> +00082 <span class="preprocessor"></span> <a class="code" href="a04199.html#a9">nlverify</a> (pthread_setspecific (_Key, pointer) == 0); +00083 <span class="preprocessor">#endif // NL_OS_WINDOWS</span> +00084 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLMISC_1_1CTDSr0" doxytag="NLMISC::CTDS::_Key" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> pthread_key_t <a class="el" href="a03473.html#NLMISC_1_1CTDSr0">NLMISC::CTDS::_Key</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06490.html#l00066">66</a> of file <a class="el" href="a06490.html">tds.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06490.html">tds.h</a><li><a class="el" href="a06489.html">tds.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:37:27 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |