We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
看到rw_lock和spin_lock好像可以直接放到共享内存shm中,用来同步不同进程的访问。
比较担心不同进程(32位/64位)中rw_lock和spin_lock 的结构体对齐/布局不一致,以及版本兼容问题。
希望可以提供例子,或者更多文档描述。
The text was updated successfully, but these errors were encountered:
rw_lock和spin_lock不能混用。目前代码里32位/64位混用确实会出问题,之前疏忽了,内部字段改为uint32_t会更好些。我提个pr吧。 参考:https://www.reddit.com/r/cprogramming/comments/uja192/size_of_unsigned_long_on_32bit_and_64bit_system/
Sorry, something went wrong.
Update rw_lock.h for #143
fdcc934
No branches or pull requests
看到rw_lock和spin_lock好像可以直接放到共享内存shm中,用来同步不同进程的访问。
比较担心不同进程(32位/64位)中rw_lock和spin_lock 的结构体对齐/布局不一致,以及版本兼容问题。
希望可以提供例子,或者更多文档描述。
The text was updated successfully, but these errors were encountered: