currentThread global property

This commit is contained in:
Alex Tkachman
2012-02-01 10:08:39 +02:00
parent 4a86f347b1
commit cb04ed1eb8
+2
View File
@@ -2,6 +2,8 @@ package std.concurrent
import java.lang.*
inline val currentThread = Thread.currentThread().sure()
inline var Thread.name : String
get() = getName().sure()
set(name: String) { setName(name) }