Skip to content

Commit

Permalink
remove 'quix' sub-module
Browse files Browse the repository at this point in the history
  • Loading branch information
quix committed Sep 13, 2008
1 parent 4e6dd98 commit 19ae060
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions contrib/quix/lib/quix/diagnostic.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

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

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

require 'thread'

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

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

module 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 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 'comp_tree/retriable_fork'
require 'comp_tree/quix/diagnostic'
require 'comp_tree/quix/builtin/kernel/tap'
require 'comp_tree/diagnostic'
require 'comp_tree/tap'

module 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 lib/comp_tree/diagnostic.rb
8 changes: 4 additions & 4 deletions lib/comp_tree/driver.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

require 'comp_tree/bucket_ipc'
require 'comp_tree/quix/diagnostic'
require 'comp_tree/quix/kernel'
require 'comp_tree/diagnostic'
require 'comp_tree/misc'
require 'comp_tree/algorithm'
require 'comp_tree/node'
require '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 lib/comp_tree/misc.rb
4 changes: 2 additions & 2 deletions lib/comp_tree/node.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

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

module 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 lib/comp_tree/quix/builtin/kernel/tap.rb

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

module TestCommon
include Quix::Diagnostic
include Diagnostic

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

0 comments on commit 19ae060

Please sign in to comment.