-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 21.10.2013 20:32, Edscott Wilson wrote: > In Linux, you can get a piece of shared memory, put a posix semaphore in > there, and use it amongst independent processes. This is done by setting > the second parameter of sem_init() to 1. In FreeBSD this functionality is > not supported (at least the last time I looked). > > Does anybody on the list know if shared semaphores are supported in > Mingw64? W32 semaphores[1] are shared by default. mingw-w64 winpthreads use these semaphores internally when pshared is PTHREAD_PROCESS_SHARED, so yes, this is supported (judging by the code; you will have to test it to see if it actually works).
[1] http://msdn.microsoft.com/en-us/library/windows/desktop/ms685129%28v=vs.85%29.aspx - -- O< ascii ribbon - stop html email! - www.asciiribbon.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) iQEcBAEBAgAGBQJSZVuIAAoJEOs4Jb6SI2CwNeUIAMCGNB1a8iV439r1jSwUzlR3 1paqsgXP8kSrkg/whkAfFKJFjN1Ya4Xr4Bw5DbGfOWUz8zV8/dhli3Sp7r5363yz XXf5AWNTE4ZITEXoowNKvqXbLlpJeA2EWvQfQBHvgjPudGdwDr7wJVOCrXQQn0rU bBAVfL9nOUEzLDTUqWga7WS8tZ5Lo7cIEK+8tO1XCaAzXx2U3474jpUywccV+05Z FE/JlG8/2tKLrPaM5csYChB778GJQTuko3f/etFmL9YsndMT+AlcarvWNYNrgHCp BN+2R4oC15gmsbJzfjwv/ewmU4LpcGLQMFsBHvlKnZ1R7N1DslEL0QU7ZlKgv1c= =SvJ/ -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
