Closed serzhiio closed 5 years ago
The problem with AtomicPtr
is that it uses the process address space, and different processes have different address spaces. You can't send pointers between processes.
It would be possible but @asajeffrey highlighted why it would not be useful/valid to do so. Even the shared memory itself doesnt get mapped at the same address in two different processes that use it.
If you need pointer sized values to live in the shmem, you could use Atomic[U/I]size
Is it possible?