Skip to content

跨进程shm存放rw_lock/spin_lock是否安全 #143

Description

@sixsixQAQ

看到rw_lock和spin_lock好像可以直接放到共享内存shm中,用来同步不同进程的访问。

比较担心不同进程(32位/64位)中rw_lock和spin_lock 的结构体对齐/布局不一致,以及版本兼容问题。

希望可以提供例子,或者更多文档描述。

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions