Luca Dariz, le ven. 29 déc. 2023 18:21:56 +0100, a ecrit:
> I guess the exact value used in the synchronization is not relevant,
> as long as it's the expected one.
Yes.
Samuel
Il 29/12/23 14:56, Samuel Thibault ha scritto:
Luca Dariz, le jeu. 28 déc. 2023 20:42:51 +0100, a ecrit:
+static void single_t2(void *arg)
+{
+ int err;
+ msleep(100);
+ err = gsync_wake(mach_task_self(), (vm_offset_t)&single_shared, 0, 0);
+ ASSERT_RET(err, "gsync_wake t2");
+
+ err = thre
Luca Dariz, le jeu. 28 déc. 2023 20:42:51 +0100, a ecrit:
> +static void single_t2(void *arg)
> +{
> + int err;
> + msleep(100);
> + err = gsync_wake(mach_task_self(), (vm_offset_t)&single_shared, 0, 0);
> + ASSERT_RET(err, "gsync_wake t2");
> +
> + err = thread_terminate(mach_thread_self());
---
tests/test-gsync.c | 87 ++
1 file changed, 87 insertions(+)
create mode 100644 tests/test-gsync.c
diff --git a/tests/test-gsync.c b/tests/test-gsync.c
new file mode 100644
index ..80701606
--- /dev/null
+++ b/tests/test-gsync.c
@@ -0,0 +1,