Class: Pod::Downloader::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-bb-bin/native/installer.rb

Constant Summary collapse

@@lock =

多线程锁

Mutex.new

Instance Method Summary collapse

Instance Method Details

#ensure_matching_versionObject



130
131
132
# File 'lib/cocoapods-bb-bin/native/installer.rb', line 130

def ensure_matching_version
  @@lock.synchronize { old_ensure_matching_version }
end

#old_ensure_matching_versionObject

rmtree 在多进程情况下可能 Directory not empty @ dir_s_rmdir 错误 old_ensure_matching_version 会移除不是同一个 CocoaPods 版本的组件缓存



129
# File 'lib/cocoapods-bb-bin/native/installer.rb', line 129

alias old_ensure_matching_version ensure_matching_version