<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>glibmm 2.4: thread.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../../../gtkmm-2.4/docs/index.html">Main Page</a> <a href="../../../../gtkmm-2.4/docs/reference/html/group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html">glibmm Namespaces</a> <a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- begin main content --> <div id="content"> <!-- Generated by Doxygen 1.5.3 --> <h1>thread.h File Reference</h1><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Namespaces</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGlib.html">Glib</a></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadError.html">Glib::ThreadError</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classGlib_1_1Exception.html">Exception</a> class for thread-related errors. <a href="classGlib_1_1ThreadError.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Thread.html">Glib::Thread</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Represents a running thread. <a href="classGlib_1_1Thread.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Thread_1_1Exit.html">Glib::Thread::Exit</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Exception class used to exit from a thread. <a href="classGlib_1_1Thread_1_1Exit.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticMutex.html">Glib::StaticMutex</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Like <a class="el" href="classGlib_1_1Mutex.html" title="Represents a mutex (mutual exclusion).">Glib::Mutex</a>, but can be defined at compile time. <a href="structGlib_1_1StaticMutex.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Mutex.html">Glib::Mutex</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Represents a mutex (mutual exclusion). <a href="classGlib_1_1Mutex.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Mutex_1_1Lock.html">Glib::Mutex::Lock</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Utility class for exception-safe mutex locking. <a href="classGlib_1_1Mutex_1_1Lock.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html">Glib::StaticRecMutex</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Like <a class="el" href="classGlib_1_1RecMutex.html">Glib::RecMutex</a>, but can be defined at compile time. <a href="structGlib_1_1StaticRecMutex.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1RecMutex.html">Glib::RecMutex</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1RecMutex_1_1Lock.html">Glib::RecMutex::Lock</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Utility class for exception-safe locking of recursive mutexes. <a href="classGlib_1_1RecMutex_1_1Lock.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRWLock.html">Glib::StaticRWLock</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Like <a class="el" href="classGlib_1_1RWLock.html">Glib::RWLock</a>, but can be defined at compile time. <a href="structGlib_1_1StaticRWLock.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1RWLock.html">Glib::RWLock</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1RWLock_1_1ReaderLock.html">Glib::RWLock::ReaderLock</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Utility class for exception-safe locking of read/write locks. <a href="classGlib_1_1RWLock_1_1ReaderLock.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1RWLock_1_1WriterLock.html">Glib::RWLock::WriterLock</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Utility class for exception-safe locking of read/write locks. <a href="classGlib_1_1RWLock_1_1WriterLock.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Cond.html">Glib::Cond</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An opaque data structure to represent a condition. <a href="classGlib_1_1Cond.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticPrivate.html">Glib::StaticPrivate<T></a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Private.html">Glib::Private<T></a></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="thread_8h.html#5b1b115d491997555a22bce7256cd9b5">GLIBMM_STATIC_MUTEX_INIT</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializer macro for <a class="el" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">Glib::StaticMutex</a>. <a href="#5b1b115d491997555a22bce7256cd9b5"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="thread_8h.html#2c8e79288c96d87c64769786c733a439">GLIBMM_STATIC_REC_MUTEX_INIT</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializer macro for <a class="el" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">Glib::StaticRecMutex</a>. <a href="#2c8e79288c96d87c64769786c733a439"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="thread_8h.html#be9bd8aefb468fcda2a3945bf9d23c2f">GLIBMM_STATIC_RW_LOCK_INIT</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializer macro for <a class="el" href="structGlib_1_1StaticRWLock.html" title="Like Glib::RWLock, but can be defined at compile time.">Glib::StaticRWLock</a>. <a href="#be9bd8aefb468fcda2a3945bf9d23c2f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="thread_8h.html#2697c638215d761f0d59b1fb76965234">GLIBMM_STATIC_PRIVATE_INIT</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializer macro for <a class="el" href="structGlib_1_1StaticPrivate.html">Glib::StaticPrivate</a>. <a href="#2697c638215d761f0d59b1fb76965234"></a><br></td></tr> <tr><td colspan="2"><br><h2>Enumerations</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__glibmmEnums.html#g9b87dca6496b6ad53baec9ca01318448">Glib::ThreadPriority</a> { <br> <a class="el" href="group__glibmmEnums.html#gg9b87dca6496b6ad53baec9ca01318448035a7bdc6a5b5eae6f644ed2605e8a37">Glib::THREAD_PRIORITY_LOW</a>, <br> <a class="el" href="group__glibmmEnums.html#gg9b87dca6496b6ad53baec9ca013184486216bb25baaaca32642841ade911a92e">Glib::THREAD_PRIORITY_NORMAL</a>, <br> <a class="el" href="group__glibmmEnums.html#gg9b87dca6496b6ad53baec9ca01318448ef77081535e90116b203ce3b3b0fe523">Glib::THREAD_PRIORITY_HIGH</a>, <br> <a class="el" href="group__glibmmEnums.html#gg9b87dca6496b6ad53baec9ca013184485b79355bbd59c508995af57e0ed39a94">Glib::THREAD_PRIORITY_URGENT</a> <br> }</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Threads.html#g2dd111336e3b057b51ca5871795fffa4">Glib::NotLock</a> { <a class="el" href="group__Threads.html#gg2dd111336e3b057b51ca5871795fffa49681fb4e85e62ba64e39a12526eaa840">Glib::NOT_LOCK</a> }</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Threads.html#g7441a36336ea4cdb35c0fddbf3f97b19">Glib::TryLock</a> { <a class="el" href="group__Threads.html#gg7441a36336ea4cdb35c0fddbf3f97b19df6b2565785992ff637cbc453988841d">Glib::TRY_LOCK</a> }</td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Threads.html#gb26d01c776801f1fff00753e97af4fc7">Glib::thread_init</a> (GThreadFunctions* vtable=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes the GLib thread system. <a href="group__Threads.html#gb26d01c776801f1fff00753e97af4fc7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Threads.html#gd59d126f6197035e6f6a31e7f4d87818">Glib::thread_supported</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the thread system is initialized. <a href="group__Threads.html#gd59d126f6197035e6f6a31e7f4d87818"></a><br></td></tr> </table> <hr><h2>Define Documentation</h2> <a class="anchor" name="5b1b115d491997555a22bce7256cd9b5"></a><!-- doxytag: member="thread.h::GLIBMM_STATIC_MUTEX_INIT" ref="5b1b115d491997555a22bce7256cd9b5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define GLIBMM_STATIC_MUTEX_INIT<code> [related]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> Initializer macro for <a class="el" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">Glib::StaticMutex</a>. <p> </div> </div><p> <a class="anchor" name="2697c638215d761f0d59b1fb76965234"></a><!-- doxytag: member="thread.h::GLIBMM_STATIC_PRIVATE_INIT" ref="2697c638215d761f0d59b1fb76965234" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define GLIBMM_STATIC_PRIVATE_INIT<code> [related]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> Initializer macro for <a class="el" href="structGlib_1_1StaticPrivate.html">Glib::StaticPrivate</a>. <p> </div> </div><p> <a class="anchor" name="2c8e79288c96d87c64769786c733a439"></a><!-- doxytag: member="thread.h::GLIBMM_STATIC_REC_MUTEX_INIT" ref="2c8e79288c96d87c64769786c733a439" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define GLIBMM_STATIC_REC_MUTEX_INIT<code> [related]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> Initializer macro for <a class="el" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">Glib::StaticRecMutex</a>. <p> </div> </div><p> <a class="anchor" name="be9bd8aefb468fcda2a3945bf9d23c2f"></a><!-- doxytag: member="thread.h::GLIBMM_STATIC_RW_LOCK_INIT" ref="be9bd8aefb468fcda2a3945bf9d23c2f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define GLIBMM_STATIC_RW_LOCK_INIT<code> [related]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> Initializer macro for <a class="el" href="structGlib_1_1StaticRWLock.html" title="Like Glib::RWLock, but can be defined at compile time.">Glib::StaticRWLock</a>. <p> </div> </div><p> </div> <!-- end main content --> <hr><address><small> Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.5.3 © 1997-2001</small></address> </body> </html>