aboutsummaryrefslogtreecommitdiff
path: root/Doc/Manual
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-02-08 06:34:35 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-02-08 06:36:39 +0000
commitb725625e6fc29fc38e561f1c8455f4559add4d5e (patch)
tree552fcb8e4c1da82b7ea5bf7ba1a395bf4b35dfe7 /Doc/Manual
parentc6bc7b881f0b8f7fa26cddbc8a997b7be877b6e1 (diff)
downloadswig-b725625e6fc29fc38e561f1c8455f4559add4d5e.tar.gz
Add support for thread_local when specified with other legitimate storage class specifiers - extern and static
Diffstat (limited to 'Doc/Manual')
-rw-r--r--Doc/Manual/Cpp0x.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/Doc/Manual/Cpp0x.html b/Doc/Manual/Cpp0x.html
index e9576ec84..457a7e41d 100644
--- a/Doc/Manual/Cpp0x.html
+++ b/Doc/Manual/Cpp0x.html
@@ -722,17 +722,22 @@ OutputType var3 = 3.1416_suffix;
<H3><a name="Cpp0x_Thread_local_storage"></a>7.2.20 Thread-local storage</H3>
-<p>SWIG correctly parses the <tt>thread_local</tt> keyword. For example, a variable
+<p>SWIG correctly parses the <tt>thread_local</tt> keyword. For example, variable
reachable by the current thread can be defined as:</p>
<div class="code"><pre>
struct A {
- thread_local int val;
+ static thread_local int val;
};
+thread_local int global_val;
</pre></div>
-<p>The new C++0x threading libraries are ignored because each SWIG target language offers
-its own threading facilities.</p>
+<p>
+The use of the <tt>thread_local</tt> storage specifier does not affect the wrapping process; it does not modify
+the wrapper code compared to when it is not specified.
+A variable will be thread local if accessed from different threads from the target language in the
+same way that it will be thread local if accessed from C++ code.
+</p>
<H3><a name="Cpp0x_Defaulting/deleting_of_standard_functions_on_C++_objects"></a>7.2.21 Defaulting/deleting of standard functions on C++ objects</H3>