Win32 Read/Write Lock Using Only Critical Sections

前端 未结 10 1356
攒了一身酷
攒了一身酷 2020-12-14 12:20

I have to implement a read/write lock in C++ using the Win32 api as part of a project at work. All of the existing solutions use kernel objects (semaphores and mutexes) tha

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 12:47

    Check out the spin_rw_mutex from Intel's Thread Building Blocks ...

    spin_rw_mutex is strictly in user-land and employs spin-wait for blocking

提交回复
热议问题