Re: [Oorexx-devel] sem_init warning messages.

2018-12-05 Thread Rick McGuire
On Tue, Dec 4, 2018 at 4:51 PM Enrico Sorichetti via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> 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  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
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] sem_init warning messages.

2018-12-04 Thread Enrico Sorichetti via Oorexx-devel
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

E

> On 4 Dec 2018, at 22:21, Rick McGuire  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
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] sem_init warning messages.

2018-12-04 Thread Rick McGuire
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
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel