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

Add property-accessors returning constant strings #4

Open
nevali opened this issue Sep 2, 2017 · 1 comment
Open

Add property-accessors returning constant strings #4

nevali opened this issue Sep 2, 2017 · 1 comment

Comments

@nevali
Copy link
Member

nevali commented Sep 2, 2017

While the re-entrant buffer-copy APIs serve a purpose, for many applications there is a guarantee that multiple threads won't attempt to access the same URI object simultaneously, and so variants which return constant string pointers would simplify property access.

@nickshanks
Copy link

Is this a pattern you want to replicate everywhere, i.e. pairwise sets of safe vs. fast accessors? If so, I think we should adopt a nomenclature that is uniform across libraries, and personally, would prefer if the fast-but-thread-unsafe accessors were the ones 'marked' with a longer function name, e.g. (get_foo is the re-entrant version, get_foo_unsafe/get_shared_foo/whatever is not)

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