mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
hide noisy output
This commit is contained in:
parent
f75d7a54ad
commit
d0f2dfffad
@ -102,15 +102,20 @@ ConnectionReader::
|
|||||||
ConnectionReader(ConnectionManager *manager, int num_threads) :
|
ConnectionReader(ConnectionManager *manager, int num_threads) :
|
||||||
_manager(manager)
|
_manager(manager)
|
||||||
{
|
{
|
||||||
#if !defined(HAVE_THREADS) || defined(SIMPLE_THREADS)
|
if (!Thread::is_true_threads()) {
|
||||||
|
// There is no point in using threads for this kind of I/O unless
|
||||||
|
// we actually have real threads available (i.e. HAVE_THREADS is
|
||||||
|
// defined, and SIMPLE_THREADS is not).
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (num_threads != 0) {
|
if (num_threads != 0) {
|
||||||
net_cat.error()
|
if (net_cat.is_debug()) {
|
||||||
<< "Threading support is not available.\n";
|
net_cat.debug()
|
||||||
}
|
<< "Threading support is not available.\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif // NDEBUG
|
#endif // NDEBUG
|
||||||
num_threads = 0;
|
num_threads = 0;
|
||||||
#endif // HAVE_THREADS
|
}
|
||||||
|
|
||||||
_raw_mode = false;
|
_raw_mode = false;
|
||||||
_tcp_header_size = datagram_tcp16_header_size;
|
_tcp_header_size = datagram_tcp16_header_size;
|
||||||
|
@ -67,8 +67,10 @@ ConnectionWriter(ConnectionManager *manager, int num_threads) :
|
|||||||
// defined, and SIMPLE_THREADS is not).
|
// defined, and SIMPLE_THREADS is not).
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (num_threads != 0) {
|
if (num_threads != 0) {
|
||||||
net_cat.error()
|
if (net_cat.is_debug()) {
|
||||||
<< "Threading support is not available.\n";
|
net_cat.debug()
|
||||||
|
<< "Threading support is not available.\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif // NDEBUG
|
#endif // NDEBUG
|
||||||
num_threads = 0;
|
num_threads = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user