Problems using EnterCriticalSection

前端 未结 6 999
余生分开走
余生分开走 2021-02-03 14:51

I need to work with array from several threads, so I use CRITICAL SECTION to give it an exclusive access to the data.
Here is my template:

#include \"std         


        
6条回答
  •  甜味超标
    2021-02-03 15:28

    so, it`s something wrong with access rights. I made size() method non-const and now it is ok.

提交回复
热议问题