Skip to content

Commit

Permalink
Merge branch 'master' of [email protected]:quix/comp_tree
Browse files Browse the repository at this point in the history
Conflicts:

	contrib/comp_tree/contrib/quix/lib/quix/diagnostic.rb
	contrib/comp_tree/contrib/quix/lib/quix/kernel.rb
	contrib/comp_tree/lib/comp_tree/algorithm.rb
	contrib/comp_tree/lib/comp_tree/bucket_ipc.rb
	contrib/comp_tree/lib/comp_tree/driver.rb
	contrib/comp_tree/lib/comp_tree/node.rb
	contrib/comp_tree/test/test_comp_tree.rb
  • Loading branch information
quix committed Sep 13, 2008
2 parents 531fdd1 + 19ae060 commit 2bc1ab0
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions contrib/comp_tree/contrib/quix/lib/quix/diagnostic.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

require 'rake/comp_tree/quix/builtin/kernel/tap'
require 'rake/comp_tree/tap'

module Rake::CompTree::Quix
module Rake::CompTree
module Diagnostic
def show(desc = nil, stream = STDOUT, &block)
if desc
Expand Down
4 changes: 2 additions & 2 deletions contrib/comp_tree/contrib/quix/lib/quix/kernel.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

require 'thread'

module Rake::CompTree::Quix
module Kernel
module Rake::CompTree
module Misc
def let
yield self
end
Expand Down
4 changes: 2 additions & 2 deletions contrib/comp_tree/lib/comp_tree/algorithm.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

require 'rake/comp_tree/quix/diagnostic'
require 'rake/comp_tree/diagnostic'
require 'rake/comp_tree/retriable_fork'

module Rake::CompTree
module Algorithm
include Quix::Diagnostic
include Diagnostic

def compute_multithreaded(root, num_threads, use_fork, buckets)
trace "Computing #{root.name} with #{num_threads} threads"
Expand Down
6 changes: 3 additions & 3 deletions contrib/comp_tree/lib/comp_tree/bucket_ipc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
require 'thread'

require 'rake/comp_tree/retriable_fork'
require 'rake/comp_tree/quix/diagnostic'
require 'rake/comp_tree/quix/builtin/kernel/tap'
require 'rake/comp_tree/diagnostic'
require 'rake/comp_tree/tap'

module Rake::CompTree
module BucketIPC
class Bucket
include Quix::Diagnostic
include Diagnostic
include RetriableFork

def initialize(address, timeout, wait_interval)
Expand Down
1 change: 1 addition & 0 deletions contrib/comp_tree/lib/comp_tree/diagnostic.rb
8 changes: 4 additions & 4 deletions contrib/comp_tree/lib/comp_tree/driver.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

require 'rake/comp_tree/bucket_ipc'
require 'rake/comp_tree/quix/diagnostic'
require 'rake/comp_tree/quix/kernel'
require 'rake/comp_tree/diagnostic'
require 'rake/comp_tree/misc'
require 'rake/comp_tree/algorithm'
require 'rake/comp_tree/node'
require 'rake/comp_tree/task_node'
Expand All @@ -22,8 +22,8 @@ class Driver
:wait_interval => 0.02,
}

include Quix::Diagnostic #:nodoc:
include Quix::Kernel #:nodoc:
include Diagnostic
include Misc

#
# Begin a new computation tree.
Expand Down
1 change: 1 addition & 0 deletions contrib/comp_tree/lib/comp_tree/misc.rb
4 changes: 2 additions & 2 deletions contrib/comp_tree/lib/comp_tree/node.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

require 'rake/comp_tree/quix/diagnostic'
require 'rake/comp_tree/diagnostic'
require 'thread'

module Rake::CompTree
#
# Base class for nodes in the computation tree.
#
class Node
include Quix::Diagnostic #:nodoc:
include Diagnostic

attr_reader :name #:nodoc:

Expand Down
1 change: 0 additions & 1 deletion contrib/comp_tree/lib/comp_tree/quix/builtin/kernel/tap.rb

This file was deleted.

1 change: 0 additions & 1 deletion contrib/comp_tree/lib/comp_tree/quix/diagnostic.rb

This file was deleted.

1 change: 0 additions & 1 deletion contrib/comp_tree/lib/comp_tree/quix/kernel.rb

This file was deleted.

1 change: 1 addition & 0 deletions contrib/comp_tree/lib/comp_tree/tap.rb
2 changes: 1 addition & 1 deletion contrib/comp_tree/test/test_comp_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Rake::CompTree
DO_FORK = (HAVE_FORK and not ARGV.include?("--no-fork"))

module TestCommon
include Rake::CompTree::Quix::Diagnostic
include Rake::CompTree::Diagnostic

if ARGV.include?("--bench")
def separator
Expand Down

0 comments on commit 2bc1ab0

Please sign in to comment.