|
From: Carlo W. <li...@us...> - 2002-01-21 03:28:25
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2002-00-21 03:28:19 UTC
Modified files:
libcwd/tests/threads3.cc libcwd/tests/threads4.cc
Log message:
Fixes.
---------------------- diff included ----------------------
Index: src/libcwd/tests/threads3.cc
diff -u src/libcwd/tests/threads3.cc:1.2 src/libcwd/tests/threads3.cc:1.3
--- src/libcwd/tests/threads3.cc:1.2 Sat Dec 29 20:17:50 2001
+++ src/libcwd/tests/threads3.cc Sun Jan 20 19:28:09 2002
@@ -1,6 +1,5 @@
#include "sys.h"
#include "threads_debug.h"
-#include <libcw/threading.h>
#include <iostream>
#ifdef CWDEBUG
@@ -17,6 +16,8 @@
{
// Set Thread Specific on/off flags of the debug channels.
ForAllDebugChannels( if (!debugChannel.is_on()) debugChannel.on(); );
+ // And for the debug object.
+ Debug( libcw_do.on() );
std::cout << "COUT:Entering thread " << pthread_self() << ":COUT\n";
Dout(dc::notice, "Entering thread " << pthread_self());
Index: src/libcwd/tests/threads4.cc
diff -u src/libcwd/tests/threads4.cc:1.2 src/libcwd/tests/threads4.cc:1.3
--- src/libcwd/tests/threads4.cc:1.2 Sat Dec 29 20:17:50 2001
+++ src/libcwd/tests/threads4.cc Sun Jan 20 19:28:09 2002
@@ -1,6 +1,5 @@
#include "sys.h"
#include "threads_debug.h"
-#include <libcw/threading.h>
#include <iostream>
#include <sstream>
@@ -28,6 +27,8 @@
pthread_t thread_id[number_of_threads2];
// Set Thread Specific on/off flags of the debug channels.
ForAllDebugChannels( if (!debugChannel.is_on()) debugChannel.on(); );
+ // And for the debug object.
+ Debug( libcw_do.on() );
std::cout << "COUT:Entering thread " << pthread_self() << ":COUT\n";
Dout(dc::notice, "Entering thread " << pthread_self());
----------------------- End of diff -----------------------
|