Dump threading data structures only with _DEBUG_PRINT_THREADING_INFO.

- They are usually not needed when using _DEBUG.
This commit is contained in:
Ari Koivula 2015-09-10 13:27:50 +03:00
parent b75bd12e81
commit cb1a206c74
2 changed files with 3 additions and 3 deletions

View file

@ -359,7 +359,7 @@ encoder_control_t* kvz_encoder_control_init(const kvz_config *const cfg) {
encoder->wpp = encoder->cfg->wpp;
#ifdef _DEBUG
#ifdef _DEBUG_PRINT_THREADING_INFO
printf("Tiles columns width:");
for (i=0; i < encoder->tiles_num_tile_columns; ++i) {
printf(" %d", encoder->tiles_col_width[i]);

View file

@ -146,7 +146,7 @@ static void encoder_state_config_wfrow_finalize(encoder_state_t * const state) {
//Nothing to do (yet?)
}
#ifdef _DEBUG
#ifdef _DEBUG_PRINT_THREADING_INFO
static void encoder_state_dump_graphviz(const encoder_state_t * const state) {
int i;
@ -635,7 +635,7 @@ int kvz_encoder_state_init(encoder_state_t * const child_state, encoder_state_t
}
}
#ifdef _DEBUG
#ifdef _DEBUG_PRINT_THREADING_INFO
if (!parent_state) encoder_state_dump_graphviz(child_state);
#endif //_DEBUG
return 1;