|
From: Carlo W. <li...@us...> - 2002-02-24 21:55:25
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2002-01-24 21:55:23 UTC
Modified files:
libcwd/documentation/tutorial/tut8.m4
Log message:
Mutex must also be global.
---------------------- diff included ----------------------
Index: src/libcwd/documentation/tutorial/tut8.m4
diff -u src/libcwd/documentation/tutorial/tut8.m4:1.3 src/libcwd/documentation/tutorial/tut8.m4:1.4
--- src/libcwd/documentation/tutorial/tut8.m4:1.3 Sun Feb 17 22:08:06 2002
+++ src/libcwd/documentation/tutorial/tut8.m4 Sun Feb 24 13:55:13 2002
@@ -66,6 +66,10 @@
return (void*)true;
}
+#ifdef CWDEBUG
+pthread_mutex_t cout_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
+
int main(void)
{
// Don't output a single character at a time (yuk)
@@ -74,9 +78,6 @@
// Do header files and library match?
Debug( check_configuration() );
// Send debug output to std::cout.
-#ifdef CWDEBUG
- pthread_mutex_t cout_mutex = PTHREAD_MUTEX_INITIALIZER;
-#endif
Debug( libcw_do.set_ostream(&std::cout, &cout_mutex) );
// Turn debug object on.
Debug( libcw_do.on() );
----------------------- End of diff -----------------------
|