ThreadUtil -> kt
This commit is contained in:
parent
6fc572cd14
commit
c86b6adad8
|
@ -1,22 +0,0 @@
|
|||
package info.nightscout.pump.common.utils;
|
||||
|
||||
/**
|
||||
* Created by geoff on 5/27/16.
|
||||
*/
|
||||
public class ThreadUtil {
|
||||
|
||||
public static long getThreadId() {
|
||||
return Thread.currentThread().getId();
|
||||
}
|
||||
|
||||
|
||||
public static String getThreadName() {
|
||||
return Thread.currentThread().getName();
|
||||
}
|
||||
|
||||
|
||||
public static String sig() {
|
||||
Thread t = Thread.currentThread();
|
||||
return t.getName() + "[" + t.getId() + "]";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package info.nightscout.pump.common.utils
|
||||
|
||||
/**
|
||||
* Created by geoff on 5/27/16.
|
||||
*/
|
||||
object ThreadUtil {
|
||||
|
||||
@JvmStatic fun sig(): String {
|
||||
val t = Thread.currentThread()
|
||||
return t.name + "[" + t.id + "]"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue