TestSpinLock.Data

The data class - represents the root page.

Methods
Data(int version, TestSpinLock.Data old)
Create a copy of the data.
Data(int version, TestSpinLock.Data old)
Create a copy of the data.
Parameters:
version - the new version
old - the old data or null
void write(int value)
Write to the fields in an unsynchronized way.
void write(int value)
Write to the fields in an unsynchronized way.
Parameters:
value - the new value

Fields
static int version
static boolean writing
static int x
static int y

version

The version.

writing

Whether a write operation is in progress.

x

The values.

y

The values.