On Tue, Dec 4, 2018 at 4:51 PM Enrico Sorichetti via Oorexx-devel < [email protected]> wrote:
> Hello Rick > > The official answer fo macOS semaphores > Is to use Grand Central Dispatch's dispatch_semaphore_t. > > If You google with dispatch_semaphore_t > You will find quite a few examples > > Or … very dumb suggestion > Since it seems that named semaphores are still supported > Why not use under the covers a named semaphore with a dummy name > As I said… it might be a dumb suggestion > > I just took a look at using a dummy name, but the SysResetEventSem uses sem_init() and I can't find any equivalent that will work with named semaphores. Rick > E > > On 4 Dec 2018, at 22:21, Rick McGuire <[email protected]> wrote: > > It appears that the sem_init deprecation warnings on the Mac are more than > just warnings. That function always returns an error on the Mac. > Unfortunately, it would prove difficult to replace it with an alternative > given how this function is currently constructed. I don't believe this > function has ever worked on the Mac, and I doubt it is used very often, > since it is fundamentally broken if you are trying to create an unnamed > semaphore. No sure how to proceed with this. > > Rick > _______________________________________________ > Oorexx-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > > > _______________________________________________ > Oorexx-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oorexx-devel >
_______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
