Skip to content

Commit 0682134

Browse files
committed
add macos
1 parent df1bd99 commit 0682134

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.reduxkotlin.utils
2+
import platform.Foundation.NSThread.Companion.currentThread
3+
4+
actual fun getThreadName(): String = currentThread.name ?: UNKNOWN_THREAD_NAME
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package org.reduxkotlin.utils
2+
3+
import platform.Foundation.NSThread.Companion.currentThread
4+
5+
actual fun getThreadName(): String = currentThread.name ?: UNKNOWN_THREAD_NAME
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package org.reduxkotlin.utils
2-
import platform.Foundation.NSThread.Companion.currentThread
3-
2+
import platform.windows
43
actual fun getThreadName(): String = currentThread.name ?: "Unknown"

0 commit comments

Comments
 (0)