X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Futil.cc;h=8a039764d0a77f4bec576e579b4b801c2f211ba3;hp=24ea42b8f2e0e945a31488a414e42ca1f4017f57;hb=87df63f0ca9cf1df4f99f5818dad45bbc4c6e3e3;hpb=f99a3b6b778428033308db0210fe6466fc40ff16 diff --git a/src/lib/util.cc b/src/lib/util.cc index 24ea42b8f..8a039764d 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -1167,3 +1167,30 @@ default_font_file () return liberation_normal; } + + +string +to_upper (string s) +{ + transform (s.begin(), s.end(), s.begin(), ::toupper); + return s; +} + + +/* Set to 1 to print the IDs of some of our threads to stdout on creation */ +#define DCPOMATIC_DEBUG_THREADS 0 + +#if DCPOMATIC_DEBUG_THREADS +void +start_of_thread (string name) +{ + std::cout << "THREAD:" << name << ":" << std::hex << pthread_self() << "\n"; +} +#else +void +start_of_thread (string) +{ + +} +#endif +