-
Notifications
You must be signed in to change notification settings - Fork 29
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
Atomic ref count #23
Comments
you mean like this? #25 |
More like atomic_ref_count.h from Chromium or cef_atomicops_x86_gcc.h from CEF/Linux since cef_atomicops_mac.h deprecated (in 10.13 at least). |
what difference would that make compared to the OS-provided locking mechanisms? |
... or <stdatomic.h> of C11. (Sorry, stupid me) |
add_ref, release and has_one_ref from cef_base_ref_counted_t to be implemented directly in C using <stdatomic.h>. Just a suggestion. |
if you refer to the refcounting in |
You're right. I didn't realise that. |
While pthread works, using atomics would be better.(not an issue but a todo)
The text was updated successfully, but these errors were encountered: