阅读背景:

boost shared_mutex(多次读/一次写)的示例?

来源:互联网 

I have a multithreaded app that has to read some data often, and occasionally that data is updated. Right now a mutex keeps access to that data safe, but it's expensive because I would like multiple threads to be able to read simultaneously, and only lock them out when an update is needed (the updating thread could wait for the other threads to finish).I have a multithreaded app that has to read som




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: