This file is indexed.

/usr/share/gtk-doc/html/libgda-4.0/ch41s02.html is in libgda-4.0-doc 4.2.8-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Multi threaded environment</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GNOME Data Access 4 manual">
<link rel="up" href="libgda-provider-class.html" title="Virtual methods for providers">
<link rel="prev" href="libgda-provider-class.html" title="Virtual methods for providers">
<link rel="next" href="ch41s03.html" title="Methods - provider's information">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="libgda-provider-class.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgda-provider-class.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME Data Access 4 manual</th>
<td><a accesskey="n" href="ch41s03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="sect1">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="id1010048"></a>Multi threaded environment</h2></div></div></div>
<p>
      Each database provider should be usable in a multi threaded environment, even if they impose some restrictions
      as to how they can be used in such an environment. The <span class="application">Libgda</span>'s framework provides some locking mechanism which
      is:
      </p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>if multi threading cannot be supported at all (for example if the client library internally
	    used by the provider does not support it), then  the provider's
	    class implementation should set the class's <em class="structfield"><code>limiting_thread</code></em> attribute to:
	    the GDA_SERVER_PROVIDER_UNDEFINED_LIMITING_THREAD constant.
	    This constant will be resolved at run time as the thread which creates the 1st connection using that
	    provider.</p></li>
<li class="listitem"><p>if multi threading is supported but any connection (or related object) can only be 
	    used by the thread in which it was created, then for each opened connection, the 
	    "<a class="link" href="GdaConnection.html#GdaConnection--thread-owner" title='The "thread-owner" property'>thread-owner</a>" connection's property
	    must be set to the current thread (and other related objects must be locked in a similar way)</p></li>
<li class="listitem"><p>if no locking is done, then the provider is assumed to support full multi threading access,
	  in this case make sure to set class's <em class="structfield"><code>limiting_thread</code></em> attribute to the NULL constant.</p></li>
</ul></div>
<p>
    </p>
<p>
      Note that the default provider's class value for the <em class="structfield"><code>limiting_thread</code></em> is safely set to the
      GDA_SERVER_PROVIDER_UNDEFINED_LIMITING_THREAD constant.
    </p>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>