PTHREAD_PROCESS_SHARED not implemented (was PTHREAD_MUTEX_SHARED on Cygwin)

Noel Grandin noelgrandin@gmail.com
Mon Jan 11 07:01:42 GMT 2021



On 2021/01/10 12:16 am, Brian Inglis wrote:
> 
> For more about Windows limitations and alternatives see:
> 
> https://www.boost.org/doc/libs/1_75_0/doc/html/interprocess/sharedmemorybetweenprocesses.html#interprocess.sharedmemorybetweenprocesses.sharedmemory.emulation 
> 

For the specific case of inter-process mutexes, Windows already supports multiple processes accessing the same mutex:

https://docs.microsoft.com/en-us/windows/win32/sync/interprocess-synchronization

But presumably there would need to be a lot of bookkeeping by cygwin/newlib to provide POSIX semantics on top of that.


More information about the Cygwin mailing list