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

Improve windows::Client::new impl #39

Merged
merged 2 commits into from
Mar 1, 2023
Merged

Conversation

NobodyXu
Copy link
Member

@NobodyXu NobodyXu commented Mar 1, 2023

  • Use u128 for the random int in the name for named semaphore in windows::Client::new to minimize possibility of collision.
  • Format the int as hex in windows::Client::new to reduce size of the name for the named semaphore.
  • Replace String with Box<str> in windows::Client.

Signed-off-by: Jiahao XU Jiahao_XU@outlook.com

 - Use `u128` for the random int in the name for named semaphore in
 `windows::Client::new` to minimize possibility of collision.
 - Format the int as hex in `windows::Client::new` to reduce size of
   the name for the named semaphore.
 - Replace `String` with `Box<str>` in `windows::Client`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
@NobodyXu NobodyXu merged commit b27ad7e into main Mar 1, 2023
@NobodyXu NobodyXu deleted the improve-windows-Client-new branch March 1, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant