Update of /cvsroot/boost/boost/libs/thread/example
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7767

Modified Files:
      Tag: thread_rewrite
        Jamfile Jamrules condition.cpp monitor.cpp mutex.cpp once.cpp 
        recursive_mutex.cpp starvephil.cpp tennis.cpp thread_group.cpp 
        tss.cpp xtime.cpp 
Log Message:
Examples compile with bbv1


Index: Jamfile
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/Jamfile,v
retrieving revision 1.15.10.1
retrieving revision 1.15.10.2
diff -u -d -r1.15.10.1 -r1.15.10.2
--- Jamfile     17 Jul 2006 10:19:36 -0000      1.15.10.1
+++ Jamfile     24 Sep 2006 13:08:22 -0000      1.15.10.2
@@ -1,19 +1,19 @@
-# Copyright 2006 Roland Schwarz.
-# # Distributed under the Boost Software License, Version 1.0. (See
-# # accompanying file LICENSE_1_0.txt or copy at
-# # http://www.boost.org/LICENSE_1_0.txt)
-# #
-# # This work is a reimplementation along the design and ideas
-# # of William E. Kempf.
+# Copyright (C) 2006 Roland Schwarz.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+#
+# This work is a reimplementation along the design and ideas
+# of William E. Kempf.
 #
 
 # The threading library is available in two versions.
-# Native to the environment and based upon pthread.
+# Native to the environment or based ontop pthread.
 # To select which version to use you need to define
 # BOOST_THREAD_POSIX when compiling your sources.
 # If BOOST_THREAD_POSIX is defined this will choose
 # pthread implementation.
-# You also need to compile the correct library version by
+# You also need to specify the correct library version by
 # specifying the the <lib> or <dll> tags.
 # <lib>@boost/libs/thread/build/boost_thread for static native and
 # <lib>@boost/libs/thread/build/boost_thread_pthread static pthread.
@@ -23,23 +23,25 @@
 
 template example
         : ## sources ##
-         <template>@boost/libs/thread/build/includes
-         #<lib>@boost/libs/thread/build/boost_thread
-         <lib>@boost/libs/thread/build/boost_thread_pthread
+         <lib>@boost/libs/thread/build/boost_thread
+         #<lib>@boost/libs/thread/build/boost_thread_pthread
+         #<dll>@boost/libs/thread/build/boost_thread
+         #<dll>@boost/libs/thread/build/boost_thread_pthread
         : ## requirements ##
-         <define>BOOST_THREAD_POSIX
+         <include>$(BOOST_ROOT)
+         #<define>BOOST_THREAD_POSIX
         : ## default build ##
           <threading>multi
        ;
 
-#exe monitor : <template>example monitor.cpp ;
-#exe starvephil : <template>example starvephil.cpp ;
-#exe tennis : <template>example tennis.cpp ;
-#exe condition : <template>example condition.cpp ;
-#exe mutex : <template>example mutex.cpp ;
-#exe once : <template>example once.cpp ;
-#exe recursive_mutex : <template>example recursive_mutex.cpp ;
+exe monitor : <template>example monitor.cpp ;
+exe starvephil : <template>example starvephil.cpp ;
+exe tennis : <template>example tennis.cpp ;
+exe condition : <template>example condition.cpp ;
+exe mutex : <template>example mutex.cpp ;
+exe once : <template>example once.cpp ;
+exe recursive_mutex : <template>example recursive_mutex.cpp ;
 exe thread : <template>example thread.cpp ;
-#exe thread_group : <template>example thread_group.cpp ;
-#exe tss : <template>example tss.cpp ;
-#exe xtime : <template>example xtime.cpp ;
+exe thread_group : <template>example thread_group.cpp ;
+exe tss : <template>example tss.cpp ;
+exe xtime : <template>example xtime.cpp ;

Index: Jamrules
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/Attic/Jamrules,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- Jamrules    17 Jul 2006 10:19:36 -0000      1.1.2.1
+++ Jamrules    24 Sep 2006 13:08:22 -0000      1.1.2.2
@@ -1,4 +1,5 @@
-# Copyright 2006 Roland Schwarz.
+# Copyright 2003 William E. Kempf
+# Copyright 2006 Roland Schwarz
 # Distributed under the Boost Software License, Version 1.0. (See
 # accompanying file LICENSE_1_0.txt or copy at
 # http://www.boost.org/LICENSE_1_0.txt)
@@ -12,14 +13,15 @@
 # path to point at the root directory of your Boost installation (the
 # one containing a subdirectory called "boost/".
 path-global BOOST_ROOT : ../../.. ;
+
 # Makes a project id for boost so that other Boost.Build projects can
 # refer to it by name.
 #
 project boost : $(BOOST_ROOT) ;
 
-# Attn: path-global was broken in my version of bbv1, so I did not use it.
-# if you want to fix it, you'd need to fix the project rule in 
-# allyourbase.jam as shown below:
+# Attn: path-global was broken in my version of bbv1, which prevented 
specifying
+# BOOST_ROOT as a relative path. So I needed to apply
+# the below fix in allyourbase.jam as shown below:
 #
 #rule project ( name : location ? )
 #{

Index: condition.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/condition.cpp,v
retrieving revision 1.2
retrieving revision 1.2.14.1
diff -u -d -r1.2 -r1.2.14.1
--- condition.cpp       4 Feb 2003 23:22:56 -0000       1.2
+++ condition.cpp       24 Sep 2006 13:08:22 -0000      1.2.14.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <iostream>
 #include <vector>
@@ -43,7 +38,8 @@
     }
 
 private:
-    int begin, end, buffered;
+    int begin, end;
+    std::vector<int>::size_type buffered;
     std::vector<int> circular_buf;
     boost::condition buffer_not_full, buffer_not_empty;
     boost::mutex monitor;

Index: monitor.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/monitor.cpp,v
retrieving revision 1.3
retrieving revision 1.3.10.1
diff -u -d -r1.3 -r1.3.10.1
--- monitor.cpp 19 Feb 2004 01:16:06 -0000      1.3
+++ monitor.cpp 24 Sep 2006 13:08:22 -0000      1.3.10.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <vector>
 #include <iostream>

Index: mutex.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/mutex.cpp,v
retrieving revision 1.3
retrieving revision 1.3.14.1
diff -u -d -r1.3 -r1.3.14.1
--- mutex.cpp   4 Feb 2003 23:22:56 -0000       1.3
+++ mutex.cpp   24 Sep 2006 13:08:22 -0000      1.3.14.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/thread.hpp>

Index: once.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/once.cpp,v
retrieving revision 1.2
retrieving revision 1.2.14.1
diff -u -d -r1.2 -r1.2.14.1
--- once.cpp    4 Feb 2003 23:22:56 -0000       1.2
+++ once.cpp    24 Sep 2006 13:08:22 -0000      1.2.14.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <boost/thread/thread.hpp>
 #include <boost/thread/once.hpp>

Index: recursive_mutex.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/recursive_mutex.cpp,v
retrieving revision 1.3
retrieving revision 1.3.14.1
diff -u -d -r1.3 -r1.3.14.1
--- recursive_mutex.cpp 4 Feb 2003 23:22:57 -0000       1.3
+++ recursive_mutex.cpp 24 Sep 2006 13:08:22 -0000      1.3.14.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <boost/thread/recursive_mutex.hpp>
 #include <boost/thread/thread.hpp>

Index: starvephil.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/starvephil.cpp,v
retrieving revision 1.3
retrieving revision 1.3.10.1
diff -u -d -r1.3 -r1.3.10.1
--- starvephil.cpp      19 Feb 2004 01:16:06 -0000      1.3
+++ starvephil.cpp      24 Sep 2006 13:08:22 -0000      1.3.10.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/condition.hpp>

Index: tennis.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/tennis.cpp,v
retrieving revision 1.3
retrieving revision 1.3.10.1
diff -u -d -r1.3 -r1.3.10.1
--- tennis.cpp  19 Feb 2004 01:16:06 -0000      1.3
+++ tennis.cpp  24 Sep 2006 13:08:22 -0000      1.3.10.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/condition.hpp>

Index: thread_group.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/thread_group.cpp,v
retrieving revision 1.2
retrieving revision 1.2.14.1
diff -u -d -r1.2 -r1.2.14.1
--- thread_group.cpp    4 Feb 2003 23:22:57 -0000       1.2
+++ thread_group.cpp    24 Sep 2006 13:08:22 -0000      1.2.14.1
@@ -1,13 +1,9 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
+
 
 #include <boost/thread/thread.hpp>
 #include <iostream>

Index: tss.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/tss.cpp,v
retrieving revision 1.2
retrieving revision 1.2.14.1
diff -u -d -r1.2 -r1.2.14.1
--- tss.cpp     4 Feb 2003 23:22:57 -0000       1.2
+++ tss.cpp     24 Sep 2006 13:08:22 -0000      1.2.14.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <boost/thread/thread.hpp>
 #include <boost/thread/tss.hpp>

Index: xtime.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/example/xtime.cpp,v
retrieving revision 1.2
retrieving revision 1.2.14.1
diff -u -d -r1.2 -r1.2.14.1
--- xtime.cpp   4 Feb 2003 23:22:57 -0000       1.2
+++ xtime.cpp   24 Sep 2006 13:08:22 -0000      1.2.14.1
@@ -1,13 +1,8 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Distributed under the Boost Software License, Version 1.0 (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
 //
-// 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.
 
 #include <boost/thread/thread.hpp>
 #include <boost/thread/xtime.hpp>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to