用法
1.指定加锁对象
2.直接作用实例方法
this
synchronized 方法
3.直接作用静态方法
相当于当前类的锁
public static synchronized void methodA(){
}
public static synchronized IDebugLog getDebugLog(Class<?> clazz)
{
getInstance();
return com.huawei.iread.logger.LogFactory.getDebugLog(clazz);
}