public final class ThreadIdentifierObject extends Object
Modifier and Type | Method | Description |
---|---|---|
static ThreadIdentifierObject |
getCurrentThreadId() |
On a given thread, this will always return the same instance.
|
static boolean |
isFromCurrentThread(ThreadIdentifierObject originalId) |
Checks whether the argument is the same instance as the current thread's identifier object and thus checks if
execution has moved to a different thread.
|
public static ThreadIdentifierObject getCurrentThreadId()
isFromCurrentThread(ThreadIdentifierObject)
for that).public static boolean isFromCurrentThread(ThreadIdentifierObject originalId)
originalId
- to use to check if this is still the same thread.Copyright © 2019–2020 Honeycomb. All rights reserved.