Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventWaitHandle support for local namespace #215

Open
brad0000 opened this issue Jun 21, 2024 · 2 comments
Open

EventWaitHandle support for local namespace #215

brad0000 opened this issue Jun 21, 2024 · 2 comments

Comments

@brad0000
Copy link

We're looking for a good, distributed locking library and yours looks good, except one of the things we want to do with it is use EventWaitHandles to signal between running copies of our app on a windows desktop, and as far as I can see your implementation only supports global locks which won't work for us.

Our app is deployed to law firms who often run user desktops on Citrix / Remote Desktop Servers and using global EventWaitHandles on those servers would cause the handle to be shared across user sessions. We instead need to use a non-global / local named EventWaitHandle that is scoped down to a single user's session.

Any appetite for supporting this scenario?

@madelson
Copy link
Owner

@brad0000 are you saying there’s a way to name the handles such that they have a scope broader than the current process but smaller than global? Any docs you can link me to on that?

If that’s the case, I’d be open to supporting it as an option. Any interest in contributing?

@brad0000
Copy link
Author

brad0000 commented Jun 23, 2024

Yeah, the handles can always be used across thread and across process. Then depending on the name prefix (Global, or Local, or no prefix (defaults to local)) they're either scoped to the current user session or to the whole system. See "The name may be prefixed" here.

That said, we need to multicast a signal, which I think will require direct access to the set and reset methods, so we might need to the the EventWaitHandler directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants