Thread sync的用法和樣例:
例句
- If several threads are using the same container the destructor of the auto-unlink hook will be called without any thread synchronization so removing the object is thread-unsafe.
如果有多個(gè)線(xiàn)程使用同一個(gè)容器,由于自斷鉤子的析構函數被調用時(shí)沒(méi)有線(xiàn)程同步,所以移除對象不是線(xiàn)程安全的。