sun.misc.Unsafe.putBooleanVolatile()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(150)

本文整理了Java中sun.misc.Unsafe.putBooleanVolatile()方法的一些代码示例,展示了Unsafe.putBooleanVolatile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unsafe.putBooleanVolatile()方法的具体详情如下:
包路径:sun.misc.Unsafe
类名称:Unsafe
方法名:putBooleanVolatile

Unsafe.putBooleanVolatile介绍

[英]Volatile version of #putBoolean(Object,long,boolean)
[中]#putBoolean(Object,long,boolean)的易失性版本

代码示例

代码示例来源:origin: neo4j/neo4j

public static void putBooleanVolatile( Object obj, long offset, boolean value )
{
  unsafe.putBooleanVolatile( obj, offset, value );
}

代码示例来源:origin: fengjiachun/Jupiter

public void putBooleanVolatile(Object target, long offset, boolean value) {
  unsafe.putBooleanVolatile(target, offset, value);
}

代码示例来源:origin: fengjiachun/Jupiter

public void putBooleanVolatile(Object target, long offset, boolean value) {
  unsafe.putBooleanVolatile(target, offset, value);
}

代码示例来源:origin: aaberg/sql2o

public void setProperty(Object obj, Object value) {
  if (value == null) return;
  theUnsafe.putBooleanVolatile(obj, offset, (Boolean) value);
}

代码示例来源:origin: boonproject/boon

@Override
public void setBoolean( Object obj, boolean value ) {
  unsafe.putBooleanVolatile( obj, offset, value );
}

代码示例来源:origin: boonproject/boon

@Override
public void setBoolean( Object obj, boolean value ) {
  unsafe.putBooleanVolatile( obj, offset, value );
}

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public void putBooleanVolatile(Object base, long offset, boolean x) {
  UNSAFE.putBooleanVolatile(base, offset, x);
}

代码示例来源:origin: io.fastjson/boon

@Override
public void setBoolean( Object obj, boolean value ) {
  unsafe.putBooleanVolatile( obj, offset, value );
}

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public void putBooleanVolatile(long address, boolean x) {
  UNSAFE.putBooleanVolatile(null, address, x);
}

代码示例来源:origin: com.hazelcast/hazelcast-all

@Override
public void putBooleanVolatile(Object base, long offset, boolean x) {
  UNSAFE.putBooleanVolatile(base, offset, x);
}

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public void putBooleanVolatile(long address, boolean x) {
  UNSAFE.putBooleanVolatile(null, address, x);
}

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public void putBooleanVolatile(Object base, long offset, boolean x) {
  UNSAFE.putBooleanVolatile(base, offset, x);
}

代码示例来源:origin: com.hazelcast/hazelcast-all

@Override
public void putBooleanVolatile(long address, boolean x) {
  UNSAFE.putBooleanVolatile(null, address, x);
}

代码示例来源:origin: com.hazelcast/hazelcast-all

@Override
public void putBooleanVolatile(Object base, long offset, boolean x) {
  UNSAFE.putBooleanVolatile(base, offset, x);
}

代码示例来源:origin: com.hazelcast/hazelcast-all

@Override
public void putBooleanVolatile(long address, boolean x) {
  UNSAFE.putBooleanVolatile(null, address, x);
}

代码示例来源:origin: org.sql2o/sql2o

public void setProperty(Object obj, Object value) {
  if (value == null) return;
  theUnsafe.putBooleanVolatile(obj, offset, (Boolean) value);
}

代码示例来源:origin: org.neo4j/neo4j-unsafe

public static void putBooleanVolatile( Object obj, long offset, boolean value )
{
  unsafe.putBooleanVolatile( obj, offset, value );
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

@Override
public void setBoolean( Object obj, boolean value ) {
  unsafe.putBooleanVolatile( obj, offset, value );
}

代码示例来源:origin: biezhi/anima

public void setProperty(Object obj, Object value) {
  if (value == null) return;
  theUnsafe.putBooleanVolatile(obj, offset, (Boolean) value);
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

@Override
public void setBoolean( Object obj, boolean value ) {
  unsafe.putBooleanVolatile( obj, offset, value );
}

相关文章

Unsafe类方法