Sha256: 4ff65f7deadf2da9d40afcbd7cfe02b898a2e4fc2c6650032df19b83dca37cef
Contents?: true
Size: 329 Bytes
Versions: 5
Compression:
Stored size: 329 Bytes
Contents
require 'thread' task_names = (1..50).map { |n| n.to_s } order_invoked = [] mutex = Mutex.new task_names.each { |task_name| task task_name do mutex.synchronize { order_invoked.push(task_name) } end } task :default => seq[*task_names] do unless order_invoked == task_names raise "seq failed" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
drake-0.8.4.1.0.15 | test/Rakefile.seq |
drake-0.8.4.1.0.16 | test/Rakefile.seq |
drake-0.8.4.1.0.17 | test/Rakefile.seq |
drake-0.8.4.1.0.18 | test/Rakefile.seq |
drake-0.8.4.1.1.0 | test/Rakefile.seq |