Yes, I agree that the docs are a little confusing. The returned handle
cannot be used directly by SysOpenEventSem, but the event semaphore you
created can now by opened using SysOpenEventSem. Generally, you would have
a master process, such as a server, that creates the semaphore. That
process would not use open, but directly use the handle returned by create.
Other processes that need to use this semaphore would call open to get a
local handle and will use that handle to post events, etc.
Rick
On Fri, Jan 9, 2015 at 6:55 AM, Staffan Tylen <staffan.ty...@gmail.com>
wrote:
> Hi. I'm trying to implement an event semaphore but the documentation
> confuses me. It states that SysCreateEventSem creates a handle that should
> be used with other related functions such as SysOpenEventSem. But
> SysOpenEventSem takes a name, not a handle, as argument, presumably the
> same name that was used with SysCreateEventSem, and returns another handle.
> So now there are suddenly two handles. My guess is that the doc is wrong
> somewhere, could anybody clarify this please? I find no sample code where
> these calls are being used.
>
> Thanks,
> 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