From ff5d3b49ca6433dbfe50dddcb2389e8595876a14 Mon Sep 17 00:00:00 2001 From: "William E. Kempf" Date: Tue, 4 Feb 2003 23:23:02 +0000 Subject: [PATCH] Updated format (removed tabs) and added missing copyrights [SVN r17214] --- example/Jamfile | 63 +++++---- example/condition.cpp | 21 ++- example/monitor.cpp | 19 ++- example/mutex.cpp | 11 ++ example/once.cpp | 23 +++- example/recursive_mutex.cpp | 11 ++ example/starvephil.cpp | 42 ++++-- example/tennis.cpp | 24 +++- example/thread.cpp | 41 +++--- example/thread_group.cpp | 23 +++- example/tss.cpp | 37 ++++-- example/xtime.cpp | 19 ++- src/condition.cpp | 26 ++-- src/exceptions.cpp | 8 +- src/mutex.cpp | 21 +-- src/once.cpp | 127 ++++++++++-------- src/recursive_mutex.cpp | 27 ++-- src/thread.cpp | 97 ++++++++------ src/threadmon.cpp | 128 +++++++++--------- src/timeconv.inl | 179 ++++++++++++------------- src/tss.cpp | 151 +++++++++++---------- src/xtime.cpp | 36 +++-- test/Jamfile | 3 +- test/test_condition.cpp | 33 +++-- test/test_mutex.cpp | 28 ++-- test/test_once.cpp | 16 ++- test/test_thread.cpp | 21 ++- test/test_tss.cpp | 16 ++- test/test_xtime.cpp | 26 +++- test/util.inl | 258 +++++++++++++++++++----------------- tutorial/Jamfile | 58 +++++--- tutorial/bounded_buffer.cpp | 21 ++- tutorial/counter.cpp | 13 +- tutorial/factorial.cpp | 13 +- tutorial/factorial2.cpp | 13 +- tutorial/factorial3.cpp | 25 +++- tutorial/helloworld.cpp | 13 +- tutorial/helloworld2.cpp | 13 +- tutorial/helloworld3.cpp | 13 +- tutorial/helloworld4.cpp | 13 +- tutorial/once.cpp | 23 +++- tutorial/tss.cpp | 37 ++++-- 42 files changed, 1118 insertions(+), 672 deletions(-) diff --git a/example/Jamfile b/example/Jamfile index c12143ce..20513c3b 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -1,7 +1,19 @@ -# (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. +# (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 example Jamfile +# +# Additional configuration variables used: +# 1. PTW32 may be used on Win32 platforms to specify that the pthreads-win32 +# library should be used instead of "native" threads. This feature is +# mostly used for testing and it's generally recommended you use the +# native threading libraries instead. PTW32 should be set to be a list +# of two strings, the first specifying the installation path of the +# pthreads-win32 library and the second specifying which library +# variant to link against (see the pthreads-win32 documentation). +# Example: jam -sPTW32="c:\pthreads-win32 pthreadVCE.lib" # Declare the location of this subproject relative to the root. subproject libs/thread/example ; @@ -12,25 +24,26 @@ subproject libs/thread/example ; SEARCH on threads.jam = $(BOOST_ROOT)/libs/thread/build ; include threads.jam ; -template example - ## sources ## - :