KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/devhelp/books/dbus/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/devhelp/books/dbus/api/dbus-threads_8h-source.html
<!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>D-Bus: dbus-threads.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<h1>dbus-threads.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/* dbus-threads.h  D-Bus threads handling</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002  Red Hat Inc.</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Licensed under the Academic Free License version 2.1</span>
<a name="l00007"></a>00007 <span class="comment"> * </span>
<a name="l00008"></a>00008 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
<a name="l00009"></a>00009 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00010"></a>00010 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00011"></a>00011 <span class="comment"> * (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00016"></a>00016 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"> * </span>
<a name="l00018"></a>00018 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00019"></a>00019 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00020"></a>00020 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> */</span>
<a name="l00023"></a>00023 <span class="preprocessor">#if !defined (DBUS_INSIDE_DBUS_H) &amp;&amp; !defined (DBUS_COMPILATION)</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#error "Only &lt;dbus/dbus.h&gt; can be included directly, this file may disappear or change contents."</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#ifndef DBUS_THREADS_H</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define DBUS_THREADS_H</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;dbus/dbus-macros.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;dbus/dbus-types.h&gt;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <a class="code" href="group__DBusMacros.html#g875146b01015e9ced22b25d76d549ab2">DBUS_BEGIN_DECLS</a>
<a name="l00034"></a>00034 
<a name="l00041"></a><a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">00041</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a> <a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a>;
<a name="l00043"></a><a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">00043</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a> <a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a>;
<a name="l00044"></a>00044 
<a name="l00046"></a><a class="code" href="group__DBusThreads.html#gb3817e9dc0798e7a519df7ac5431ea25">00046</a> <span class="keyword">typedef</span> <a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a>*  (* DBusMutexNewFunction)    (void);
<a name="l00048"></a><a class="code" href="group__DBusThreads.html#g8c67a631ab136d96e34c44f9837dcfe9">00048</a> <span class="keyword">typedef</span> void        (* <a class="code" href="group__DBusThreads.html#g8c67a631ab136d96e34c44f9837dcfe9">DBusMutexFreeFunction</a>)   (<a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a> *mutex);
<a name="l00050"></a><a class="code" href="group__DBusThreads.html#g0898fbcdb9ce075ad22a4ba62c764e55">00050</a> <span class="keyword">typedef</span> <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> (* <a class="code" href="group__DBusThreads.html#g0898fbcdb9ce075ad22a4ba62c764e55">DBusMutexLockFunction</a>)   (<a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a> *mutex);
<a name="l00052"></a><a class="code" href="group__DBusThreads.html#g6af259fe33b3abbea037aa5845d52c31">00052</a> <span class="keyword">typedef</span> <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> (* <a class="code" href="group__DBusThreads.html#g6af259fe33b3abbea037aa5845d52c31">DBusMutexUnlockFunction</a>) (<a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a> *mutex);
<a name="l00053"></a>00053 
<a name="l00061"></a><a class="code" href="group__DBusThreads.html#gefea5db4419f173f3e712ef94e5720b4">00061</a> <span class="keyword">typedef</span> <a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a>*  (* DBusRecursiveMutexNewFunction)    (void);
<a name="l00064"></a><a class="code" href="group__DBusThreads.html#g1af3cc1f19d1ac9c5626384616f53c00">00064</a> <span class="keyword">typedef</span> void        (* <a class="code" href="group__DBusThreads.html#g1af3cc1f19d1ac9c5626384616f53c00">DBusRecursiveMutexFreeFunction</a>)   (<a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a> *mutex);
<a name="l00068"></a><a class="code" href="group__DBusThreads.html#gbe758099d0c00d678df2300ec2fff44f">00068</a> <span class="keyword">typedef</span> void        (* <a class="code" href="group__DBusThreads.html#gbe758099d0c00d678df2300ec2fff44f">DBusRecursiveMutexLockFunction</a>)   (<a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a> *mutex);
<a name="l00072"></a><a class="code" href="group__DBusThreads.html#g9aeb5599003075dd85eb88cbeac4d904">00072</a> <span class="keyword">typedef</span> void        (* <a class="code" href="group__DBusThreads.html#g9aeb5599003075dd85eb88cbeac4d904">DBusRecursiveMutexUnlockFunction</a>) (<a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a> *mutex);
<a name="l00073"></a>00073 
<a name="l00077"></a><a class="code" href="group__DBusThreads.html#g3e2c4e12a9ff66463e67a44a35cbed3b">00077</a> <span class="keyword">typedef</span> <a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a>*  (* DBusCondVarNewFunction)         (void);
<a name="l00080"></a><a class="code" href="group__DBusThreads.html#g37d922f1c48ac5cc99b8cf8491ed1d77">00080</a> <span class="keyword">typedef</span> void          (* <a class="code" href="group__DBusThreads.html#g37d922f1c48ac5cc99b8cf8491ed1d77">DBusCondVarFreeFunction</a>)        (<a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a> *cond);
<a name="l00081"></a>00081 
<a name="l00092"></a><a class="code" href="group__DBusThreads.html#g2c1781991e26d8576ee83ea6c0d6e7d2">00092</a> <span class="keyword">typedef</span> void          (* <a class="code" href="group__DBusThreads.html#g2c1781991e26d8576ee83ea6c0d6e7d2">DBusCondVarWaitFunction</a>)        (<a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a> *cond,
<a name="l00093"></a>00093                                                           <a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a>   *mutex);
<a name="l00094"></a>00094 
<a name="l00101"></a><a class="code" href="group__DBusThreads.html#ge121475a38fd6572bc30f2a707251bad">00101</a> <span class="keyword">typedef</span> <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>   (* <a class="code" href="group__DBusThreads.html#ge121475a38fd6572bc30f2a707251bad">DBusCondVarWaitTimeoutFunction</a>) (<a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a> *cond,
<a name="l00102"></a>00102                                                           <a class="code" href="group__DBusThreads.html#g4eb021cd6cd0830423eac2738e0ddc40">DBusMutex</a>   *mutex,
<a name="l00103"></a>00103                                                           <span class="keywordtype">int</span>          timeout_milliseconds);
<a name="l00108"></a><a class="code" href="group__DBusThreads.html#gfb6fc546a9df8424d5cf374f3927cd41">00108</a> <span class="keyword">typedef</span> void          (* <a class="code" href="group__DBusThreads.html#gfb6fc546a9df8424d5cf374f3927cd41">DBusCondVarWakeOneFunction</a>) (<a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a> *cond);
<a name="l00109"></a>00109 
<a name="l00114"></a><a class="code" href="group__DBusThreads.html#g1e26a5fc7202d27452c1efd9b4abb835">00114</a> <span class="keyword">typedef</span> void          (* <a class="code" href="group__DBusThreads.html#g1e26a5fc7202d27452c1efd9b4abb835">DBusCondVarWakeAllFunction</a>) (<a class="code" href="group__DBusThreads.html#ga14cd16a336a85b5edbca3c237c3829e">DBusCondVar</a> *cond);
<a name="l00115"></a>00115 
<a name="l00121"></a><a class="code" href="group__DBusThreads.html#gf6212cb5e78b84cf5c6c6cb6e2b5aabe">00121</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> 
<a name="l00122"></a>00122 {
<a name="l00123"></a>00123   DBUS_THREAD_FUNCTIONS_MUTEX_NEW_MASK      = 1 &lt;&lt; 0,
<a name="l00124"></a>00124   DBUS_THREAD_FUNCTIONS_MUTEX_FREE_MASK     = 1 &lt;&lt; 1,
<a name="l00125"></a>00125   DBUS_THREAD_FUNCTIONS_MUTEX_LOCK_MASK     = 1 &lt;&lt; 2,
<a name="l00126"></a>00126   DBUS_THREAD_FUNCTIONS_MUTEX_UNLOCK_MASK   = 1 &lt;&lt; 3,
<a name="l00127"></a>00127   DBUS_THREAD_FUNCTIONS_CONDVAR_NEW_MASK    = 1 &lt;&lt; 4,
<a name="l00128"></a>00128   DBUS_THREAD_FUNCTIONS_CONDVAR_FREE_MASK   = 1 &lt;&lt; 5,
<a name="l00129"></a>00129   DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_MASK   = 1 &lt;&lt; 6,
<a name="l00130"></a>00130   DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_TIMEOUT_MASK   = 1 &lt;&lt; 7,
<a name="l00131"></a>00131   DBUS_THREAD_FUNCTIONS_CONDVAR_WAKE_ONE_MASK = 1 &lt;&lt; 8,
<a name="l00132"></a>00132   DBUS_THREAD_FUNCTIONS_CONDVAR_WAKE_ALL_MASK = 1 &lt;&lt; 9,
<a name="l00133"></a>00133   DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_NEW_MASK    = 1 &lt;&lt; 10,
<a name="l00134"></a>00134   DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_FREE_MASK   = 1 &lt;&lt; 11,
<a name="l00135"></a>00135   DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_LOCK_MASK   = 1 &lt;&lt; 12,
<a name="l00136"></a>00136   DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_UNLOCK_MASK = 1 &lt;&lt; 13,
<a name="l00137"></a>00137   DBUS_THREAD_FUNCTIONS_ALL_MASK     = (1 &lt;&lt; 14) - 1
<a name="l00138"></a>00138 } <a class="code" href="group__DBusThreads.html#gf6212cb5e78b84cf5c6c6cb6e2b5aabe">DBusThreadFunctionsMask</a>;
<a name="l00139"></a>00139 
<a name="l00161"></a><a class="code" href="structDBusThreadFunctions.html">00161</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00162"></a>00162 <span class="keyword"></span>{
<a name="l00163"></a><a class="code" href="structDBusThreadFunctions.html#8f1c2a3b3805e2c4034d7a341f7f82f1">00163</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mask; 
<a name="l00165"></a><a class="code" href="structDBusThreadFunctions.html#342ba12a619162a5b228903076b46a44">00165</a>   <a class="code" href="group__DBusThreads.html#gb3817e9dc0798e7a519df7ac5431ea25">DBusMutexNewFunction</a> mutex_new; 
<a name="l00166"></a><a class="code" href="structDBusThreadFunctions.html#01107266a74895f13af9962af6ad07dd">00166</a>   <a class="code" href="group__DBusThreads.html#g8c67a631ab136d96e34c44f9837dcfe9">DBusMutexFreeFunction</a> mutex_free; 
<a name="l00167"></a><a class="code" href="structDBusThreadFunctions.html#1cc9d20f2ad0296e932951470063f8d0">00167</a>   <a class="code" href="group__DBusThreads.html#g0898fbcdb9ce075ad22a4ba62c764e55">DBusMutexLockFunction</a> mutex_lock; 
<a name="l00168"></a><a class="code" href="structDBusThreadFunctions.html#334d478ec305b04f526537c131cd8e8a">00168</a>   <a class="code" href="group__DBusThreads.html#g6af259fe33b3abbea037aa5845d52c31">DBusMutexUnlockFunction</a> mutex_unlock; 
<a name="l00170"></a><a class="code" href="structDBusThreadFunctions.html#1796b617165734984bc40d38f9600d78">00170</a>   <a class="code" href="group__DBusThreads.html#g3e2c4e12a9ff66463e67a44a35cbed3b">DBusCondVarNewFunction</a> condvar_new; 
<a name="l00171"></a><a class="code" href="structDBusThreadFunctions.html#d302412c382190eddc05736f24d8855c">00171</a>   <a class="code" href="group__DBusThreads.html#g37d922f1c48ac5cc99b8cf8491ed1d77">DBusCondVarFreeFunction</a> condvar_free; 
<a name="l00172"></a><a class="code" href="structDBusThreadFunctions.html#e4cb6e9fe7c0813213561150721f349c">00172</a>   <a class="code" href="group__DBusThreads.html#g2c1781991e26d8576ee83ea6c0d6e7d2">DBusCondVarWaitFunction</a> condvar_wait; 
<a name="l00173"></a><a class="code" href="structDBusThreadFunctions.html#5e049c7bdf4d83a85ebce31d838d4218">00173</a>   <a class="code" href="group__DBusThreads.html#ge121475a38fd6572bc30f2a707251bad">DBusCondVarWaitTimeoutFunction</a> condvar_wait_timeout; 
<a name="l00174"></a><a class="code" href="structDBusThreadFunctions.html#3f1301eacf666381ec6c39100e6787e1">00174</a>   <a class="code" href="group__DBusThreads.html#gfb6fc546a9df8424d5cf374f3927cd41">DBusCondVarWakeOneFunction</a> condvar_wake_one; 
<a name="l00175"></a><a class="code" href="structDBusThreadFunctions.html#128295c0019a401163d04ea0e291b36c">00175</a>   <a class="code" href="group__DBusThreads.html#g1e26a5fc7202d27452c1efd9b4abb835">DBusCondVarWakeAllFunction</a> condvar_wake_all; 
<a name="l00177"></a><a class="code" href="structDBusThreadFunctions.html#fd30fb78a3ca1064bc8c074a6a61361e">00177</a>   <a class="code" href="group__DBusThreads.html#gefea5db4419f173f3e712ef94e5720b4">DBusRecursiveMutexNewFunction</a> recursive_mutex_new; 
<a name="l00178"></a><a class="code" href="structDBusThreadFunctions.html#8be6d85b7f162352efa5bb4a5663f44f">00178</a>   <a class="code" href="group__DBusThreads.html#g1af3cc1f19d1ac9c5626384616f53c00">DBusRecursiveMutexFreeFunction</a> recursive_mutex_free; 
<a name="l00179"></a><a class="code" href="structDBusThreadFunctions.html#e99179276be65fe4f701de307882dac5">00179</a>   <a class="code" href="group__DBusThreads.html#gbe758099d0c00d678df2300ec2fff44f">DBusRecursiveMutexLockFunction</a> recursive_mutex_lock; 
<a name="l00180"></a><a class="code" href="structDBusThreadFunctions.html#0bdb8cd9b263bcde5a0548b16ccd0702">00180</a>   <a class="code" href="group__DBusThreads.html#g9aeb5599003075dd85eb88cbeac4d904">DBusRecursiveMutexUnlockFunction</a> recursive_mutex_unlock; 
<a name="l00182"></a>00182   void (* padding1) (void); 
<a name="l00183"></a>00183   void (* padding2) (void); 
<a name="l00184"></a>00184   void (* padding3) (void); 
<a name="l00185"></a>00185   void (* padding4) (void); 
<a name="l00187"></a>00187 } <a class="code" href="structDBusThreadFunctions.html">DBusThreadFunctions</a>;
<a name="l00188"></a>00188 
<a name="l00189"></a>00189 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>  <a class="code" href="group__DBusThreads.html#ga9a4ed445c77af3afa0dbdbb9d85afd4">dbus_threads_init</a>         (<span class="keyword">const</span> <a class="code" href="structDBusThreadFunctions.html">DBusThreadFunctions</a> *functions);
<a name="l00190"></a>00190 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>  <a class="code" href="group__DBusThreads.html#gf508fbf3e39435491244b856183a1296">dbus_threads_init_default</a> (<span class="keywordtype">void</span>);
<a name="l00191"></a>00191 
<a name="l00194"></a>00194 <a class="code" href="group__DBusMacros.html#ge4a9263a43f8220f6e1c0fd07cf6e59a">DBUS_END_DECLS</a>
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 <span class="preprocessor">#endif </span><span class="comment">/* DBUS_THREADS_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 14 22:26:12 2009 for D-Bus by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

Anon7 - 2021