A WaitFreeReadQueue is designed for multiple-writer, single-reader applications.
WaitFreeReadQueue 则为多个写入方、单一读取方的应用程序而设计。
What's interesting with this model is that multiple readers are permitted access to the data at one time, but only one writer.
这个模型有趣的地方在于允许多个线程同时访问相同数据,但同一时刻只允许一个线程写入数据。
We are using a multiple-reader, single-writer application, so we must add our own synchronization to make sure that only one NHRT requests a measurement at a time.
我们使用的是多个读取方、单一写入方的应用程序,因此必须添加自己的同步,来确保同一时间只有一个NHRT请求一个度量结果。
应用推荐