2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-03 09:42:16 +00:00

Compare commits

..

76 Commits

Author SHA1 Message Date
Beman Dawes
6f795dce04 Change +++m_count to ++m_count in three places
[SVN r11217]
2001-09-23 12:31:10 +00:00
Beman Dawes
7496ecbc73 sprintf -> std::sprintf + related workarounds
[SVN r11202]
2001-09-22 13:29:58 +00:00
Beman Dawes
76e80ee4c4 Added std:: to size_t in three places
[SVN r11173]
2001-09-20 18:46:11 +00:00
William E. Kempf
8e2536fc54 Updated for new config system.
[SVN r11168]
2001-09-20 14:52:42 +00:00
William E. Kempf
9bbbfbe6ff Fixed some extern "C" bugs.
[SVN r11153]
2001-09-19 17:52:44 +00:00
Beman Dawes
a2fc9ebfaa Fix broken links and other HTML changes related to new config system
[SVN r11142]
2001-09-18 21:24:51 +00:00
William E. Kempf
16c78b81e2 Fixed bug in pthread implementation.
[SVN r11125]
2001-09-14 17:47:09 +00:00
William E. Kempf
e71b204d10 Cleaned up code on warning level 4.
[SVN r11122]
2001-09-14 15:13:12 +00:00
William E. Kempf
f64208ce7a Third round of changes from the review.
[SVN r11109]
2001-09-12 21:29:42 +00:00
Beman Dawes
3410029cad Changes relating to addition of overview.html
[SVN r11103]
2001-09-12 14:38:03 +00:00
Beman Dawes
25fd0f52e7 Initial commit
[SVN r11102]
2001-09-12 14:36:32 +00:00
William E. Kempf
095f16c4f1 Made the constructors inline.
[SVN r11082]
2001-09-10 02:48:20 +00:00
William E. Kempf
5a4a5f405f Fixed bugs in the implementation found during review.
[SVN r11081]
2001-09-10 02:47:46 +00:00
William E. Kempf
7775aceb86 Third changes during review.
[SVN r11049]
2001-09-06 13:11:34 +00:00
William E. Kempf
29177b34a7 Second round of changes during review.
[SVN r11024]
2001-09-05 01:44:20 +00:00
Beman Dawes
ae1c315e0c Fixes after review of Bill's first batch of changes based on Formal Review comments.
[SVN r11021]
2001-09-04 17:16:22 +00:00
William E. Kempf
3592d8c412 First round of modifications during review.
[SVN r11001]
2001-09-03 18:08:35 +00:00
William E. Kempf
63fdf6ef22 Final modifications before submission.
[SVN r10961]
2001-08-30 00:51:17 +00:00
William E. Kempf
915c2cd206 Changed thread design. Updated code and documentation in preperation of submission.
[SVN r10952]
2001-08-28 20:19:37 +00:00
Beman Dawes
54abba952b Event rationale + minor other cleanups
[SVN r10884]
2001-08-17 12:07:35 +00:00
William E. Kempf
7cee797d2e Maded tss class an implementation detail and added thread_specific_ptr template.
[SVN r10873]
2001-08-15 20:49:42 +00:00
William E. Kempf
a7fb1e73d2 Cleaned up code for tss and once methods. Added unit tests for once methods.
[SVN r10838]
2001-08-10 20:47:02 +00:00
Beman Dawes
6a46149868 Added "share stack objects" Q&A
[SVN r10831]
2001-08-10 13:41:58 +00:00
Beman Dawes
f07d726011 Wording clarifications based on comments by Asger Alstrup Nielsen
[SVN r10830]
2001-08-10 12:22:37 +00:00
William E. Kempf
344ddb5fd2 Added tss cleanup functionality and once methods.
[SVN r10827]
2001-08-09 20:32:52 +00:00
Beman Dawes
537b623b18 Add two new questions
[SVN r10820]
2001-08-08 21:07:43 +00:00
Beman Dawes
ab180e79d1 Clarified Memory visibility between threads
[SVN r10798]
2001-08-07 14:45:35 +00:00
Beman Dawes
089dc81880 Major docs workover; use stylesheet, std doc form, show namespace boost in synopsis, rename locks basic_ -> scoped_, etc.
[SVN r10797]
2001-08-06 20:46:24 +00:00
Beman Dawes
73187a40b6 Initial commit
[SVN r10796]
2001-08-06 20:41:47 +00:00
Beman Dawes
3d06b18e3e Renamed from basic_*.html
[SVN r10795]
2001-08-06 20:41:02 +00:00
Beman Dawes
fd9d19b050 Renamed scoped_*.html
[SVN r10794]
2001-08-06 20:39:53 +00:00
William E. Kempf
692aa0e352 Moved lock types into boost::detail::thread. Renamed the lock types. Added locked() methods to lock types.
[SVN r10725]
2001-07-30 18:29:25 +00:00
Beman Dawes
307bbdc951 Format updated.
[SVN r10707]
2001-07-25 20:10:39 +00:00
Beman Dawes
b460053eda Make format consistent with other pages.
[SVN r10706]
2001-07-25 19:38:47 +00:00
Beman Dawes
df704a5dae "basic_lock" -> "scoped_lock" name changes. Added locked() member.
[SVN r10704]
2001-07-25 15:56:43 +00:00
Beman Dawes
9b76b71b5f Changes links format_thread_definition.html -> definitions.html
[SVN r10672]
2001-07-19 20:42:31 +00:00
Beman Dawes
427a109865 Renamed file; was thread_formal_definitions.html
[SVN r10671]
2001-07-19 20:41:30 +00:00
Beman Dawes
5662e2f6bb Remove prior to adding renamed (definitions.html) file
[SVN r10670]
2001-07-19 20:40:40 +00:00
Beman Dawes
6a6fbd0553 Change spelling "thread safe" to "thread-safe" and link to definition of the term. Fix other minor spelling errors.
[SVN r10669]
2001-07-19 20:24:45 +00:00
William E. Kempf
5084e9ccd2 Changed the documentation of basic_lock to describe proper lock() behavior.
Minor modifications to condition.html style.


[SVN r10668]
2001-07-19 18:36:43 +00:00
Beman Dawes
84cb093ee6 basic_lock and related updates
[SVN r10667]
2001-07-19 17:33:12 +00:00
Beman Dawes
8305cad4f8 Add entry, more uniformly apply citation tag
[SVN r10661]
2001-07-18 19:17:47 +00:00
William E. Kempf
b52c5d45ec Added new FAQ questions and cleaned up some documentation.
[SVN r10659]
2001-07-18 14:15:44 +00:00
Beman Dawes
71103fe1bc make wait and timed_wait formatting consistent
[SVN r10655]
2001-07-18 01:16:35 +00:00
Beman Dawes
57d262d4d6 Recast into stanard Boost.Threads doc form (Beman)
[SVN r10651]
2001-07-17 21:22:21 +00:00
Beman Dawes
acf721b0bd Minor changes
[SVN r10650]
2001-07-17 21:17:56 +00:00
William E. Kempf
3ee4bf04dc Fixed minor code changes.
[SVN r10639]
2001-07-16 20:48:39 +00:00
William E. Kempf
6e4a874880 Fixed minor code bugs and changed Jamfiles according to form suggested by Dave Abrahams.
[SVN r10638]
2001-07-16 20:47:48 +00:00
William E. Kempf
b07d60aa94 Updated tss.html for new documentation style. Fixed minor things in thread.html.
[SVN r10637]
2001-07-16 20:04:31 +00:00
William E. Kempf
fb3aed485c Added reference for POSA2.
[SVN r10636]
2001-07-16 18:45:53 +00:00
William E. Kempf
cbf212f1cd Added styles.css. Updated threads.html documentation for new look and design.
[SVN r10635]
2001-07-16 18:24:07 +00:00
Beman Dawes
562c4583d4 Add bibliography link
[SVN r10632]
2001-07-16 15:47:50 +00:00
Beman Dawes
95053b7516 Move Bibliography to separate page, minor tweeks
[SVN r10631]
2001-07-16 15:47:23 +00:00
Beman Dawes
65d06c138e Initial commit
[SVN r10630]
2001-07-16 15:46:04 +00:00
Dave Abrahams
9e3e80558c Repaired.
[SVN r10627]
2001-07-15 19:48:39 +00:00
William E. Kempf
d27e195ca2 Changed code that included exceptions.h to include exceptions.hpp.
[SVN r10601]
2001-07-12 20:36:04 +00:00
William E. Kempf
0ae839e0bb Applied patches for Unix/GNU toolset.
[SVN r10600]
2001-07-12 20:29:43 +00:00
William E. Kempf
21067cb309 Removed extraneous VC++ project files.
[SVN r10560]
2001-07-06 20:13:08 +00:00
Beman Dawes
5cb2a46ae4 Minor wording improvements, more references added
[SVN r10555]
2001-07-06 19:23:45 +00:00
William E. Kempf
66fa1995cf Fixed coding style to match proposed Boost guidelines.
[SVN r10550]
2001-07-06 18:23:40 +00:00
William E. Kempf
6e83cfdc72 Added a FAQ document.
[SVN r10549]
2001-07-06 18:02:56 +00:00
William E. Kempf
c2930faaec Added thread_group documentation.
[SVN r10544]
2001-07-05 19:29:05 +00:00
William E. Kempf
64ad66034a Updated thread documentation to reflect latest design.
[SVN r10543]
2001-07-05 19:11:07 +00:00
William E. Kempf
101e7cfbda Fixed the title.
[SVN r10541]
2001-07-05 18:40:12 +00:00
William E. Kempf
76de0ff7fd Added rationale documentation.
[SVN r10540]
2001-07-05 18:33:05 +00:00
William E. Kempf
f70b32cc63 Modified boost::thread to use a noncopyable design.
[SVN r10519]
2001-07-03 18:29:18 +00:00
William E. Kempf
8ce4eeca24 Changed boost::thread to use a noncopyable design.
[SVN r10518]
2001-07-03 18:28:10 +00:00
William E. Kempf
2febaf386c Modified to use Boost.Function for the threadproc.
[SVN r10437]
2001-06-26 19:20:11 +00:00
William E. Kempf
1d6f10702d Fixed bug (case sensitive subproject name) in jamfiles that prevented building.
[SVN r10434]
2001-06-26 15:40:59 +00:00
William E. Kempf
ebe3a7beee Update all Jamfiles for new build system. (Note: problem with <lib> pseudo-target)
[SVN r10428]
2001-06-25 21:53:57 +00:00
William E. Kempf
9e38dc5f48 Made WinThreads the default for MSVC, as it should have been to begin with.
[SVN r10427]
2001-06-25 21:52:35 +00:00
William E. Kempf
6dafed21fc First attempt at modifying Jamfiles for latest Boost.Build system.
[SVN r10425]
2001-06-25 18:15:31 +00:00
Beman Dawes
067d2a39f7 Integrate new Formal Definition of "Thread" page
[SVN r10365]
2001-06-20 22:49:44 +00:00
Beman Dawes
d70f46126b Replaced by _atomic.cpp
[SVN r10343]
2001-06-15 15:44:13 +00:00
Beman Dawes
b282e06a90 Initial commit
[SVN r10342]
2001-06-15 15:42:45 +00:00
nobody
abd2e68f8d This commit was manufactured by cvs2svn to create branch
'thread-initial'.

[SVN r10341]
2001-06-15 15:42:44 +00:00
29 changed files with 192 additions and 29 deletions

View File

@@ -61,7 +61,7 @@ William Kempf.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->29 August, 2001<!--webbot bot="Timestamp" endspan i-checksum="34360" -->
</p>
<p>©<i> Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -135,7 +135,7 @@ the ISO standard language and library.
<p>Note: The URL's above are provided in plain text form so that they will be visible
on printed copies of this document.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %b %Y" startspan -->01 Oct 2001<!--webbot bot="Timestamp" endspan i-checksum="14990" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %b %Y" startspan -->17 Aug 2001<!--webbot bot="Timestamp" endspan i-checksum="14763" -->
</p>
<p>© Copyright Beman Dawes, 2001</p>

View File

@@ -118,7 +118,7 @@ int main(int argc, char* argv[])
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -323,7 +323,7 @@ received: 4
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <A href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -93,7 +93,7 @@ The one exception to this is BOOST_HAS_THREADS.</p>
</table>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->18 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39344" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -232,7 +232,7 @@ William Kempf.</p>
<p>The visibility rules are based on <a href="bibliography.html#Butenhof-97">[Butenhof
97]</a>.&nbsp;</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %b %Y" startspan -->01 Oct 2001<!--webbot bot="Timestamp" endspan i-checksum="14990" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %b %Y" startspan -->07 Aug 2001<!--webbot bot="Timestamp" endspan i-checksum="14762" -->
</p>
<p>© Copyright Beman Dawes, 2001</p>
<p>&nbsp;</p>

View File

@@ -164,7 +164,7 @@ by Darryl Green).</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->04 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39335" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -70,7 +70,7 @@
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->12 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39332" -->
</p>
<p>©<i> Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -111,7 +111,7 @@ libraries, namely thread-safety. The C++ standard doesn't address threads at al
world programs often make use of native threading support. A portable library that doesn't
address the issue of thread-safety is there for not much help to a programmer who wants to
use the library in his multi-threaded application. So there's a very great need for portable
primitives that will allow the library developer to create <a href="definitions.html#Thread-safe">thread-safe</a>
primitives that will allow the library developer to create <a href="file:///c:/boost/site/libs/thread/doc/definitions.html#Thread-safe">thread-safe</a>
implementations. This
need far out weighs the need for portable methods to create and manage threads.</p>
@@ -141,7 +141,7 @@ and barriers.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->03 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39333" -->
</p>
<p><i>© Copyright <A href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -232,7 +232,7 @@ a <a href="mutex_concept.html">mutex model</a>.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->04 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39335" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -101,7 +101,7 @@ thread lock error - deadlock occurred.
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->10 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39328" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -259,7 +259,7 @@ resulting in undefined behavior such as a program crash.</p>
#include <a href="../../../boost/thread/thread.hpp">&lt;boost/thread/thread.hpp&gt;</a>
#include &lt;iostream&gt;
boost::mutex io_mutex; // The iostreams are not guaranteed to be <a href="definitions.html#Thread-safe">thread-safe</a>!
boost::mutex io_mutex; // The iostreams are not guaranteed to be <a href="file:///c:/boost/site/libs/thread/doc/definitions.html#Thread-safe">thread-safe</a>!
class counter
{
@@ -309,7 +309,7 @@ count == 4
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <A href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -265,7 +265,7 @@ concepts.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->03 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39333" -->
</p>
<p><i>© Copyright <A href="mailto:williamkempf@hotmail.com">William E. Kempf</A>

View File

@@ -148,7 +148,7 @@ Users should not depend on this derivation, however, as implementations are free
to meet the NonCopyable requirement in other ways.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->12 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39332" -->
</p>
<p>© Copyright 2001 Beman Dawes</p>
</body>

View File

@@ -79,7 +79,7 @@ higher level concepts there's also an argument for accessibility.</p>
<h2><a name="lock_objects">Rationale for the Lock Design</a></h2>
<p>Programmers who are used to multi-threaded programming issues will quickly note that the
Boost.Thread's design for mutex lock concepts is not <a href="definitions.html#Thread-safe">thread-safe</a>
Boost.Thread's design for mutex lock concepts is not <a href="file:///c:/boost/site/libs/thread/doc/definitions.html#Thread-safe">thread-safe</a>
(this is clearly documented
as well). At first this may seem like a serious design flaw. Why have a multi-threading primitive
that's not thread-safe itself?</p>
@@ -421,7 +421,7 @@ read, maintain, and be less likely to contain latent defects.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->17 August, 2001<!--webbot bot="Timestamp" endspan i-checksum="34355" -->
</p>
<p><i>© Copyright <A href="mailto:williamkempf@hotmail.com">William E. Kempf</A>

View File

@@ -317,7 +317,7 @@ count == 4
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -124,7 +124,7 @@ int test_main(int, char*[])
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->06 August, 2001<!--webbot bot="Timestamp" endspan i-checksum="34352" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -203,7 +203,7 @@ class.</p>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -251,7 +251,7 @@ locked
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%B %d, %Y" startspan -->October 01, 2001<!--webbot bot="Timestamp" endspan i-checksum="30079" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%B %d, %Y" startspan -->September 13, 2001<!--webbot bot="Timestamp" endspan i-checksum="37965" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -272,7 +272,7 @@ locked
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -216,7 +216,7 @@ global_data == 4
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <A href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -244,7 +244,7 @@ alarm sounded...
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <A href="mailto:williamkempf@hotmail.com">William E. Kempf</A>

View File

@@ -177,7 +177,7 @@ count = 10
</pre>
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->06 August, 2001<!--webbot bot="Timestamp" endspan i-checksum="34352" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -70,7 +70,7 @@ namespace boost
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->04 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39335" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -204,7 +204,7 @@ int main(int argc, char* argv[])
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->13 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39334" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

View File

@@ -131,7 +131,7 @@ int main(int argc, char* argv[])
<hr>
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->01 October, 2001<!--webbot bot="Timestamp" endspan i-checksum="38291" -->
<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->10 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39328" -->
</p>
<p><i>© Copyright <a href="mailto:williamkempf@hotmail.com">William E. Kempf</a>

66
example/Jamfile Normal file
View File

@@ -0,0 +1,66 @@
# (C) Copyright William E. Kempf 2001. Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears
# in all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
#
# Boost.Threads build and test Jamfile
#
# Declares the following targets:
# 1. monitor, an example program.
# 2. starvephil, an example program.
# 3. tennis, an example program.
# declare the location of this subproject relative to the root
subproject libs/thread/example ;
# Do some OS-specific setup
if $(NT)
{
BOOST_THREADMON_LIB = <lib>../build/libboost_threadmon ;
}
else
{
BOOST_THREADMON_LIB = ;
}
#######################
#
# Declare the Boost.Threads monitor example program.
#
exe monitor : monitor/monitor.cpp
<lib>../build/libboost_thread
$(BOOST_THREADMON_LIB)
# requirements
: <include>$(BOOST_ROOT)
<threading>multi
: debug release ;
#######################
#
# Declare the Boost.Threads starvephil example program.
#
exe starvephil : starvephil/starvephil.cpp
<lib>../build/libboost_thread
$(BOOST_THREADMON_LIB)
# requirements
: <include>$(BOOST_ROOT)
<threading>multi
: debug release ;
#######################
#
# Declare the Boost.Threads tennis example program.
#
exe tennis : tennis/tennis.cpp
<lib>../build/libboost_thread
$(BOOST_THREADMON_LIB)
# requirements
: <include>$(BOOST_ROOT)
<threading>multi
: debug release ;

View File

@@ -0,0 +1,61 @@
/*
*
* Copyright (C) 2001
* William E. Kempf
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation. William E. Kempf makes no representations
* about the suitability of this software for any purpose.
* It is provided "as is" without express or implied warranty.
*
* Revision History (excluding minor changes for specific compilers)
* 8 Feb 01 Initial version.
*/
#ifndef BOOST_ATOMIC_HPP
#define BOOST_ATOMIC_HPP
#include <boost/config.hpp>
#ifndef BOOST_HAS_THREADS
# error Thread support is unavailable!
#endif
#if !defined(BOOST_HAS_WINTHREADS)
# include <boost/thread/mutex.hpp>
#endif
namespace boost {
class atomic_t
{
public:
typedef long value_type;
friend value_type read(const atomic_t&);
friend value_type increment(atomic_t&);
friend value_type decrement(atomic_t&);
friend value_type swap(atomic_t&, value_type);
friend value_type compare_swap(atomic_t&, value_type, value_type);
explicit atomic_t(value_type val=0)
: _value(val)
{
}
private:
volatile value_type _value;
#if !defined(BOOST_HAS_WINTHREADS)
mutex _mutex;
#endif
};
extern atomic_t::value_type read(const atomic_t&);
extern atomic_t::value_type increment(atomic_t&);
extern atomic_t::value_type decrement(atomic_t&);
extern atomic_t::value_type swap(atomic_t&, atomic_t::value_type);
extern atomic_t::value_type compare_swap(atomic_t&, atomic_t::value_type, atomic_t::value_type);
} // namespace boost
#endif // BOOST_ATOMIC_HPP

36
test/Jamfile Normal file
View File

@@ -0,0 +1,36 @@
# (C) Copyright William E. Kempf 2001. Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears
# in all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
#
# Boost.Threads build and test Jamfile
#
# Declares the following targets:
# 1. test_thread, a unit test executable.
# declare the location of this subproject relative to the root
subproject libs/thread/test ;
#######################
#
# Declare the Boost.Threads unit test program.
#
# Do some OS-specific setup
if $(NT)
{
BOOST_THREADMON_LIB = <lib>../build/libboost_threadmon ;
}
else
{
BOOST_THREADMON_LIB = ;
}
unit-test test_thread : test_thread.cpp
<lib>../build/libboost_thread
$(BOOST_THREADMON_LIB)
# requirements
: <include>$(BOOST_ROOT)
<threading>multi
: debug release ;