Skip to content

Commit

Permalink
Move stately strict
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Sep 19, 2023
1 parent 85ad38f commit 113f9e0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package co.touchlab.stately.concurrency

import co.touchlab.stately.maybeFreeze
import co.touchlab.stately.strict.maybeFreeze
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.touchlab.stately.concurrency

import co.touchlab.stately.maybeFreeze
import co.touchlab.stately.strict.maybeFreeze
import kotlinx.cinterop.Arena
import kotlinx.cinterop.alloc
import kotlinx.cinterop.ptr
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.touchlab.stately.concurrency

import co.touchlab.stately.maybeFreeze
import co.touchlab.stately.strict.maybeFreeze
import kotlinx.cinterop.Arena
import kotlinx.cinterop.alloc
import kotlinx.cinterop.ptr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package co.touchlab.stately.concurrency

import co.touchlab.stately.maybeFreeze
import co.touchlab.stately.strict.maybeFreeze
import kotlin.native.concurrent.AtomicReference

// actual typealias AtomicReference<T> = AtomicReference<T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.touchlab.stately.concurrency

import co.touchlab.stately.maybeFreeze
import co.touchlab.stately.strict.maybeFreeze
import kotlinx.cinterop.Arena
import kotlinx.cinterop.alloc
import kotlinx.cinterop.ptr
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.touchlab.stately.concurrency

import co.touchlab.stately.maybeFreeze
import co.touchlab.stately.strict.maybeFreeze
import kotlinx.cinterop.Arena
import kotlinx.cinterop.alloc
import kotlinx.cinterop.ptr
Expand Down
2 changes: 1 addition & 1 deletion stately-strict/api/stately-strict.api
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public final class co/touchlab/stately/HelpersJVMKt {
public final class co/touchlab/stately/strict/HelpersJVMKt {
public static final fun getStrictMemoryModel ()Z
public static final fun maybeFreeze (Ljava/lang/Object;)Ljava/lang/Object;
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package co.touchlab.stately
package co.touchlab.stately.strict

expect fun <T> T.maybeFreeze(): T

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package co.touchlab.stately
package co.touchlab.stately.strict

actual fun <T> T.maybeFreeze(): T = this
actual val strictMemoryModel: Boolean = false
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package co.touchlab.stately
package co.touchlab.stately.strict

actual fun <T> T.maybeFreeze(): T = this
actual val strictMemoryModel: Boolean = false
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package co.touchlab.stately
package co.touchlab.stately.strict

import kotlin.native.concurrent.freeze

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
* limitations under the License.
*/

package co.touchlab.stately
package co.touchlab.stately.strict

import co.touchlab.stately.strict.maybeFreeze
import co.touchlab.testhelp.isFrozen
import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down

0 comments on commit 113f9e0

Please sign in to comment.