Changeset 474
- Timestamp:
- 05/23/07 14:19:19 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/echoaudio/src/debugmodule/debugmodule.cpp
r445 r474 30 30 #include <iostream> 31 31 32 #define DO_MESSAGE_BUFFER_PRINT 33 32 34 using namespace std; 33 35 … … 341 343 return; 342 344 } 345 346 #ifdef DO_MESSAGE_BUFFER_PRINT 343 347 if (pthread_mutex_trylock(&mb_write_lock) == 0) { 344 348 strncpy(mb_buffers[mb_inbuffer], msg, MB_BUFFERSIZE); … … 351 355 mb_overruns++; // skip the atomicness for now 352 356 } 357 #else 358 fprintf(stderr,msg); 359 #endif 353 360 } 354 361 … … 370 377 } 371 378 379 #ifdef DO_MESSAGE_BUFFER_PRINT 372 380 if (pthread_mutex_trylock(&mb_write_lock) == 0) { 373 381 strncpy(mb_buffers[mb_inbuffer], msg, MB_BUFFERSIZE); … … 380 388 mb_overruns++; // skip the atomicness for now 381 389 } 390 #else 391 fprintf(stderr,msg); 392 #endif 382 393 } 383 394