Sometimes, in data transfering project,we need use multi thread mode. So, access variable in safe mode is to be very important. But that is very troubled to do this in application. We must lock
... [More]
, unlock, and continue lock, unlock, etc... I write this project to do this simple. I use Templete and class of C++ to encapsulation these action. It is very simple to be used. I wish every body that use this moudle, enjoy your life!
很多时候,在数据传输工程中,我们需要使用多线程模型。因此,如何安全地访问变量,变得非常重要。 但对应用程序来说,这个问题往往非常麻烦,因为我们必须不断的lock,unlock... ... 我写这个工程的目的是把这件事情变得简单一些,这里我使用了C++的模板和类来封装这些动作,帮助大家简单地,安全地访问变量。 希望大家喜欢它。 [Less]