| Today I came across the following code: #include <pthread.h> This is grossly simplified, of course, and in fact the code above was
spread over at least 5 files (the two class declarations in headers,
their implementations in source files, and the global mutex
declaration in yet another one) in at least 2 directories. To spare those who have not yet reacted the suspense, global_mutex will be created before execution reaches main(). Who do you think will catch the exception if one is thrown in the constructor? |