|
From: Carlo W. <li...@us...> - 2002-02-24 22:39:53
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2002-01-24 22:39:51 UTC
Modified files:
libcwd/tests/threads4.cc
Log message:
Also here global.
---------------------- diff included ----------------------
Index: src/libcwd/tests/threads4.cc
diff -u src/libcwd/tests/threads4.cc:1.12 src/libcwd/tests/threads4.cc:1.13
--- src/libcwd/tests/threads4.cc:1.12 Wed Feb 20 18:05:32 2002
+++ src/libcwd/tests/threads4.cc Sun Feb 24 14:39:40 2002
@@ -70,6 +70,8 @@
return (void *)(cnt == loopsize);
}
+pthread_mutex_t cout_mutex = PTHREAD_MUTEX_INITIALIZER;
+
int main(void)
{
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
@@ -77,7 +79,6 @@
#if CWDEBUG_ALLOC
libcw::debug::make_all_allocations_invisible_except(NULL);
#endif
- pthread_mutex_t cout_mutex = PTHREAD_MUTEX_INITIALIZER;
Debug( libcw_do.set_ostream(&std::cout, &cout_mutex) );
Debug( libcw_do.on() );
char margin[32];
----------------------- End of diff -----------------------
|