- 論壇徽章:
- 0
|
Using文件里面提到了說:
===
As of version 2.66, there is rudimentary support for threads, if you happen to be using Win32 or if you have pthreads. Define WIN32 or MW_PTHREADS to signify this fact.
This will cause a global mutex to be created, and memwatch will lock it when accessing the global memory chain, but it's still far from certified threadsafe.
===
但是沒有更細(xì)致的說明會有什么問題,或者說是怎么產(chǎn)生的。在我看來,如果它都用到mutex了應(yīng)該不會有太大問題啊。會不會死鎖?還是別的什么問題?
我需要看問題有多嚴(yán)重,然后決定使不是用memwatch,畢竟只是用來debug,正式版又不用
我用memwatch挺長時間了,但以前也沒做過多線程的東西,現(xiàn)在想把它應(yīng)用到多線程當(dāng)中來,用過的xdjm們給點意見  |
|