Skip to content
  • Guido Trotter's avatar
    ConfigWriter: synchronize access · f78ede4e
    Guido Trotter authored
    Since we share the ConfigWriter we need somehow to make sure that
    accessing it is properly synchronized. We'll do it using the
    locking.ssynchronized decorator and a module-private shared lock.
    
    This patch also renames a few functions, which were called inside the
    ConfigWriter, to a private version _UnlockedFunctionName, and exports
    the synchronized public ones. The internal callers, which are already
    synchronized, are then changed to use the _Unlocked version, to prevent
    double locking.
    
    Reviewed-by: iustinp
    f78ede4e