sebastianene07 commented on a change in pull request #1709:
URL: https://github.com/apache/incubator-nuttx/pull/1709#discussion_r483552797
##########
File path: arch/sim/src/sim/up_simsmp.c
##########
@@ -324,11 +344,22 @@ int up_cpu_start(int cpu)
/* Initialize the CPU info */
cpuinfo.cpu = cpu;
- ret = sem_init(&cpuinfo.done, 0, 0);
+
+#ifdef CONFIG_HOST_MACOS
+ done_sema = sem_open(g_sema_name_done, O_CREAT, 0644, 0);
Review comment:
It's a good catch, thanks ! This will not work when we have multiple
NuttX instances running. Currently it will work because the thread creation is
sequential and we destroy the named semaphore after each CPU initialisation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]