|
Boost-Commit : |
From: john.groups_at_[hidden]
Date: 2007-11-02 23:19:19
Author: jtorjo
Date: 2007-11-02 23:19:18 EDT (Fri, 02 Nov 2007)
New Revision: 40713
URL: http://svn.boost.org/trac/boost/changeset/40713
Log:
[logging]
v0.10.4, 2 nov 2007
- added TSS tests
- test test_tss FAILS - to check!
Properties modified:
sandbox/logging/lib/logging/tests/test_ts_resource/ (props changed)
Text files modified:
sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp | 5 +++--
sandbox/logging/lib/logging/tests/test_ts_resource/test_ts_resource.cpp | 11 +++++++++++
sandbox/logging/lib/logging/tests/test_tss/test_tss_objects.cpp | 12 +++++++++---
3 files changed, 23 insertions(+), 5 deletions(-)
Modified: sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp 2007-11-02 23:19:18 EDT (Fri, 02 Nov 2007)
@@ -1,9 +1,10 @@
/**
@page page_changelog Changelog
-v0.10.3, 2 nov 2007
+v0.10.4, 2 nov 2007
- added TSS tests
- - test test_tss works fine under VS 2005
+ - test test_tss FAILS - to check!
+ - test test_ts_resource not yet implemented
- added TSS - however, not tested (TSS is off, for now)
- compiles on VS2005, gcc 3.4.2 , gcc 4.1 and gcc 4.3
Modified: sandbox/logging/lib/logging/tests/test_ts_resource/test_ts_resource.cpp
==============================================================================
--- sandbox/logging/lib/logging/tests/test_ts_resource/test_ts_resource.cpp (original)
+++ sandbox/logging/lib/logging/tests/test_ts_resource/test_ts_resource.cpp 2007-11-02 23:19:18 EDT (Fri, 02 Nov 2007)
@@ -1,7 +1,18 @@
// test_ts_resource.cpp : Defines the entry point for the console application.
//
+/*
+ I have a vector, that is modified by different threads.
+ Every once in a while I take a snapshot of this vector. Different threads reading this, they will be equal to the last snapshot, or
+ the snapshot took before. I repeat this several times, to see that what I write to the vector, really propagates.
+
+*/
+
+// make a scenario where every X seconds, we re-load a certain configuration;
+// like a std::vector or something
+
+/
int main()
{
Modified: sandbox/logging/lib/logging/tests/test_tss/test_tss_objects.cpp
==============================================================================
--- sandbox/logging/lib/logging/tests/test_tss/test_tss_objects.cpp (original)
+++ sandbox/logging/lib/logging/tests/test_tss/test_tss_objects.cpp 2007-11-02 23:19:18 EDT (Fri, 02 Nov 2007)
@@ -95,17 +95,23 @@
thread::sleep( next);
}
+using namespace logging;
+tss_value<read_file> file;
+tss_value<string_no_spaces> str;
+
void process_file() {
managed_object m(*g_running_thread_count);
int thread_idx = g_running_thread_count->count();
std::cout << "started thread " << thread_idx << std::endl;
- using namespace logging;
- tss_value<read_file> file;
- tss_value<string_no_spaces> str;
+ read_file local_file;
while ( true) {
std::string word = file->read_word();
+ std::string local_word = local_file.read_word();
+ // it should behave just like a "local" variable
+ if ( word != local_word)
+ BOOST_ASSERT( false);
str->add_word(word);
if ( word.empty() )
break;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk