OK thanks. Just to clarify, The waiting method needs to wait for an event
in a method located in a different class! Reading about the GUARD
instruction it makes me believe that it only works within the same class
because of the EXPOSE instruction requirement. But I may be wrong ...

Staffan


On Fri, Jan 9, 2015 at 1:46 PM, Rick McGuire <object.r...@gmail.com> wrote:

> If you are doing everything in a single process, you can use the guard
> instruction to wait for a variable to get set.  I don't have time right
> now, but I'll see if I can't whip up a simple semaphore class for you in a
> little bit.
>
> Rick
>
> On Fri, Jan 9, 2015 at 7:36 AM, Staffan Tylen <staffan.ty...@gmail.com>
> wrote:
>
>> Thanks Rick. Yes, it seems to work when I use the handle from
>> SysOpenEventSem as argument to other functions.
>>
>> I'm trying to use this technique to wait for an event in a second thread
>> but are there better or other ways to do that?
>>
>> Staffan
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming! The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net
>> _______________________________________________
>> Oorexx-users mailing list
>> Oorexx-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to