Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.util
Class Base.CommonMonitor

java.lang.Object
  extended by com.tangosol.util.Base.CommonMonitor

Enclosing class:
Base

public static final class Base.CommonMonitor
extends java.lang.Object

A class which acts as CommonMonitor.


Field Summary
protected  int m_barrier
           
protected  int m_nonvolatile
           

 

Constructor Summary
Base.CommonMonitor()
           

 

Method Summary
 void readBarrier()
          Ensure all reads made after this call will have visibility to any writes made prior to a corresponding call to writeBarrier on another thread.
 void writeBarrier()
          Ensure all writes made prior to this call to be visible to any thread which calls the corresponding readBarrier method.

 

Field Detail

m_nonvolatile

protected int m_nonvolatile

m_barrier

protected volatile int m_barrier

Constructor Detail

Base.CommonMonitor

public Base.CommonMonitor()

Method Detail

writeBarrier

public final void writeBarrier()
Ensure all writes made prior to this call to be visible to any thread which calls the corresponding readBarrier method.

readBarrier

public final void readBarrier()
Ensure all reads made after this call will have visibility to any writes made prior to a corresponding call to writeBarrier on another thread.

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.