-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Struggling to call kotlin from jcstress maven project
- Loading branch information
1 parent
049feee
commit 1b2645c
Showing
8 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
target/ | ||
libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.sample; | ||
|
||
import komem.litmus.LitmusTest; | ||
|
||
public class AbaTest<S> { | ||
|
||
private List<Function1<S, Unit>> fs; | ||
private Function1<S, Object> arbiter; | ||
|
||
public AbaTest(LitmusTest<?> test) { | ||
fs = test.getThreadFunctions(); | ||
arbiter = test.getOutcomeFinalizer(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import komem.litmus.LitmusTest; | ||
import kotlin.Unit; | ||
import kotlin.jvm.functions.Function1; | ||
|
||
import java.util.List; | ||
|
||
public class AbaTest<S> { | ||
|
||
private static List<Function1<S, Unit>> fs; | ||
private static Function1<S, Object> arbiter; | ||
|
||
public AbaTest(LitmusTest<?> test) { | ||
fs = test.getThreadFunctions(); | ||
arbiter = test.getOutcomeFinalizer(); | ||
} | ||
|
||
} | ||
|
||
|
||
/* | ||
class LitmusJcsState<S> { | ||
private static (!!!) List<Function1<...>> tfs = test.getThreadFunctions(); | ||
private S state = stateProducer(); | ||
public void actor0() { | ||
tfs[0].invoke(state); | ||
} | ||
} | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters