public interface SingleThreadedChecked
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DISABLE_SINGLE_THREADED_CHECK
A flag indicating whether the single-threaded check is disabled.
|
| Modifier and Type | Method and Description |
|---|---|
void |
singleThreadedCheckDisabled(boolean singleThreadedCheckDisabled)
Sets the flag to disable the single-threaded check.
|
void |
singleThreadedCheckReset()
Resets the single-threaded check, forgetting about previous accesses.
|
static final boolean DISABLE_SINGLE_THREADED_CHECK
void singleThreadedCheckReset()
void singleThreadedCheckDisabled(boolean singleThreadedCheckDisabled)
true, this resource can be shared between threads
as long as the users ensure that it is used in a thread-safe manner.singleThreadedCheckDisabled - true to turn off the thread safety check,
false to enable it.Copyright © 2024. All rights reserved.