• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4<title>Function add_scoped_thread_attribute</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.Log v2">
8<link rel="up" href="../../attributes.html#header.boost.log.attributes.scoped_attribute_hpp" title="Header &lt;boost/log/attributes/scoped_attribute.hpp&gt;">
9<link rel="prev" href="add_scop_idm45711348499472.html" title="Function template add_scoped_logger_attribute">
10<link rel="next" href="../../BOOST_LO_idm45711348486016.html" title="Macro BOOST_LOG_SCOPED_LOGGER_ATTR">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td></tr></table>
14<hr>
15<div class="spirit-nav">
16<a accesskey="p" href="add_scop_idm45711348499472.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../attributes.html#header.boost.log.attributes.scoped_attribute_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../BOOST_LO_idm45711348486016.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
17</div>
18<div class="refentry">
19<a name="boost.log.add_scop_idm45711348491920"></a><div class="titlepage"></div>
20<div class="refnamediv">
21<h2><span class="refentrytitle">Function add_scoped_thread_attribute</span></h2>
22<p>boost::log::add_scoped_thread_attribute</p>
23</div>
24<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
25<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../attributes.html#header.boost.log.attributes.scoped_attribute_hpp" title="Header &lt;boost/log/attributes/scoped_attribute.hpp&gt;">boost/log/attributes/scoped_attribute.hpp</a>&gt;
26
27</span>
28<span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <span class="identifier">add_scoped_thread_attribute</span><span class="special">(</span><a class="link" href="attribute_name.html" title="Class attribute_name">attribute_name</a> <span class="keyword">const</span> <span class="special">&amp;</span> name<span class="special">,</span>
29                                        <a class="link" href="attribute.html" title="Class attribute">attribute</a> <span class="keyword">const</span> <span class="special">&amp;</span> attr<span class="special">)</span><span class="special">;</span></pre></div>
30<div class="refsect1">
31<a name="idm45554750451856"></a><h2>Description</h2>
32<p>Registers a thread-specific attribute</p>
33<p>
34
35</p>
36<div class="variablelist"><table border="0" class="variablelist compact">
37<colgroup>
38<col align="left" valign="top">
39<col>
40</colgroup>
41<tbody>
42<tr>
43<td><p><span class="term">Parameters:</span></p></td>
44<td><div class="variablelist"><table border="0" class="variablelist compact">
45<colgroup>
46<col align="left" valign="top">
47<col>
48</colgroup>
49<tbody>
50<tr>
51<td><p><span class="term"><code class="computeroutput">attr</code></span></p></td>
52<td><p>The attribute. Must not be NULL. </p></td>
53</tr>
54<tr>
55<td><p><span class="term"><code class="computeroutput">name</code></span></p></td>
56<td><p>Attribute name </p></td>
57</tr>
58</tbody>
59</table></div></td>
60</tr>
61<tr>
62<td><p><span class="term">Returns:</span></p></td>
63<td><p>An unspecified guard object which may be used to initialize a <code class="computeroutput">scoped_attribute</code> variable. </p></td>
64</tr>
65</tbody>
66</table></div>
67</div>
68</div>
69<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
70<td align="left"></td>
71<td align="right"><div class="copyright-footer">Copyright &#169; 2007-2016 Andrey Semashev<p>
72        Distributed under the Boost Software License, Version 1.0. (See accompanying
73        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
74      </p>
75</div></td>
76</tr></table>
77<hr>
78<div class="spirit-nav">
79<a accesskey="p" href="add_scop_idm45711348499472.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../attributes.html#header.boost.log.attributes.scoped_attribute_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../BOOST_LO_idm45711348486016.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
80</div>
81</body>
82</html>
83