Re: [Oorexx-devel] unix/rexxutil event and mutex functions are really broken.

2018-12-07 Thread Rick McGuire
On Fri, Dec 7, 2018 at 8:56 AM Enrico Sorichetti via Oorexx-devel < oorexx-devel@lists.sourceforge.net> wrote: > > > On 7 Dec 2018, at 14:30, Rick McGuire wrote: > > That's a memory management library and doesn't appear to have anything to > do with cross-process semaphores. > > > But it has for

Re: [Oorexx-devel] unix/rexxutil event and mutex functions are really broken.

2018-12-07 Thread P.O. Jonsson
Acording to this post sem_init does not exist on macOS so it cannot work: https://stackoverflow.com/questions/6230734/posix-semaphores-synchronization-problem Read the EDIT below the code snippet. Can’t

Re: [Oorexx-devel] unix/rexxutil event and mutex functions are really broken.

2018-12-07 Thread Enrico Sorichetti via Oorexx-devel
> On 7 Dec 2018, at 14:30, Rick McGuire wrote: > > That's a memory management library and doesn't appear to have anything to do > with cross-process semaphores. But it has for threads … My mistake was not to look at the other sources involved to discover that semaphores support was only

Re: [Oorexx-devel] unix/rexxutil event and mutex functions are really broken.

2018-12-07 Thread Rick McGuire
That's a memory management library and doesn't appear to have anything to do with cross-process semaphores. Rick On Fri, Dec 7, 2018 at 8:26 AM Enrico Sorichetti via Oorexx-devel < oorexx-devel@lists.sourceforge.net> wrote: > You might get some ideas by looking at how the Boehm GC does it >

Re: [Oorexx-devel] unix/rexxutil event and mutex functions are really broken.

2018-12-07 Thread Enrico Sorichetti via Oorexx-devel
You might get some ideas by looking at how the Boehm GC does it Enrico > On 7 Dec 2018, at 14:15, Rick McGuire wrote: > > Ignoring for a moment the elephant in the corner of the Apple deprecated (and > non-functional) sem_* functions, the *ix versions of the semaphore functions > are really

[Oorexx-devel] unix/rexxutil event and mutex functions are really broken.

2018-12-07 Thread Rick McGuire
Ignoring for a moment the elephant in the corner of the Apple deprecated (and non-functional) sem_* functions, the *ix versions of the semaphore functions are really sort of broken. For the event semaphores, one of the functions is a reset, which uses sem_init() to perform the reset. This