• 's avatar
    Encapsulate the definition of Mutex into glog's internal namespace. · c1995cd4
    authored
    This will fix the issue a user in Japan reported in his blog.
    
    http://kzk9.net/blog/2009/05/deadlock_with_gflags_and_glog_2.html
    
    According to his description, when he use glog and gflags-1.1, gflags'
    code uses glog's Mutex, the Mutex cannot lock the pthread_mutex, and
    the program stops.
    
    The bug happens with the combination of gflags-1.1 and glog. It seems
    that the issue was caused by incompatibility of Mutex classes. Though I
    couldn't reproduce this issue, the reporter of this bug said that
    adding namespace fixes the problem and I think it is generally good
    idea to use namespace for this kind of common component to avoid
    incompatibilities. So, I check this change in now. This patch
    will protect glog from future changes on Mutex as well.
    --This line, and  those below, will be ignored--
    
    M    src/base/mutex.h
    
    
    git-svn-id: https://google-glog.googlecode.com/svn/trunk@51 eb4d4688-79bd-11dd-afb4-1d65580434c0
    c1995cd4
Name
Last commit
Last update
..
base Loading commit data...
glog Loading commit data...
windows Loading commit data...
config.h.in Loading commit data...
config_for_unittests.h Loading commit data...
demangle.cc Loading commit data...
demangle.h Loading commit data...
demangle_unittest.cc Loading commit data...
demangle_unittest.sh Loading commit data...
demangle_unittest.txt Loading commit data...
googletest.h Loading commit data...
logging.cc Loading commit data...
logging_striplog_test.sh Loading commit data...
logging_striptest10.cc Loading commit data...
logging_striptest2.cc Loading commit data...
logging_striptest_main.cc Loading commit data...
logging_unittest.cc Loading commit data...
logging_unittest.err Loading commit data...
mock-log.h Loading commit data...
mock-log_test.cc Loading commit data...
raw_logging.cc Loading commit data...
signalhandler.cc Loading commit data...
signalhandler_unittest.cc Loading commit data...
signalhandler_unittest.sh Loading commit data...
stacktrace.h Loading commit data...
stacktrace_generic-inl.h Loading commit data...
stacktrace_libunwind-inl.h Loading commit data...
stacktrace_powerpc-inl.h Loading commit data...
stacktrace_unittest.cc Loading commit data...
stacktrace_x86-inl.h Loading commit data...
stacktrace_x86_64-inl.h Loading commit data...
stl_logging_unittest.cc Loading commit data...
symbolize.cc Loading commit data...
symbolize.h Loading commit data...
symbolize_unittest.cc Loading commit data...
utilities.cc Loading commit data...
utilities.h Loading commit data...
utilities_unittest.cc Loading commit data...
vlog_is_on.cc Loading commit data...