[#35937] WeRDS (the Weekly Ruby-Doc Summary) 2002-09-13 — maili31s@... (SugHimsi == SUGIHARA Hiroshi)

すぎむし。

14 messages 2002/09/16
[#36004] WeRDS (the Weekly Ruby-Doc Summary) 2002-09-22 — maili31s@... (SugHimsi == SUGIHARA Hiroshi) 2002/09/25

すぎむし%くどいようですが、うるさければ謹慎しますので。

[#35940] 9.2 の数値が 9.199999999999999 — "Inoue" <rubyist@...1.117.ne.jp>

井上です。

16 messages 2002/09/17
[#35941] Re: 9.2 の数値が 9.199999999999999 — matz@... (Yukihiro Matsumoto) 2002/09/17

まつもと ゆきひろです

[#35942] Re: 9.2 の数値が 9.199999999999999 — Fujimaru Hiroyasu <f-hiro@...> 2002/09/17

 藤丸です。

[#35977] [ANN] Exerb 2.1.0 — Yuya Kato <yuya-ml@4th.to>

Yuyaです。

18 messages 2002/09/20
[#35978] Cookie — 金光雅夫 (KANEMITSU Masao) <masao-k@...> 2002/09/20

金光です。どもっ (_ _)

[#35979] Re: Cookie — rio-t@... 2002/09/20

こんにちは、高石です。

[#35980] Re: Cookie — 金光雅夫 (KANEMITSU Masao) <masao-k@...> 2002/09/20

金光です。どもっ。

[ruby-list:35971] namadu patch for rbnamazu-0.4

From: Beyond <beyond@...>
Date: 2002-09-19 04:31:26 UTC
List: ruby-list #35971
Beyond です。

分散namazu が、rbnamazu-0.4 で動かなかったので、とりあえず動く程度に 
patch をあてました。

rbnamazu-0.4 をスレッドセーフ化するのは諦め、ほぼシングルスレッドにて動
作します。

$ diff -u -2 -p namadu.rb.org namadu.rb
--- namadu.rb.org	Fri Jul 21 01:58:49 2000
+++ namadu.rb	Thu Sep 19 13:01:41 2002
@@ -62,5 +62,5 @@ class Namazu
       @summary = nil
       if querystring
-	nmzresults = @nmzindices.collect() do |nmzindex|
+	nmzresults = @indices.collect() do |nmzindex|
 	  nmzindex.search(querystring)
 	end
@@ -72,5 +72,5 @@ class Namazu
 	    nmzresult = nmzresults[i]
 	    next unless nmzresult
-	    nmzindex = @nmzindices[i]
+	    nmzindex = @indices[i]
 	    for docid in nmzresult.docids()
 	      nmzdoc = Hash.new()	# Document -> Hash
@@ -87,5 +87,5 @@ class Namazu
 	  @summary.hitnum = @summary.length()
 	  @summary.whence = get_whence()
-	  @summary.max = get_max()
+	  @summary.maxlength = get_maxlength()
 	end
       end
@@ -108,5 +108,5 @@ class Namadu
     public
     def search(querystring, sortkey=nil, max=nil, whence=nil)
-      summarizer = Namazu::HashSummarizer.new(@nmzindices, @nmzoptions)
+      summarizer = Namazu::Summarizer.new(@indices, @options)
       if summarizer.summarize(querystring)
 	if sortkey
@@ -116,9 +116,12 @@ class Namadu
 	end
 	summarizer.sort!(sort)
-	summarizer.summary()[summarizer.get_whence(whence), summarizer.get_max(max)]
+	summarizer.summary().get(summarizer.get_whence(whence), summarizer.get_maxlength(max))
       else
 	nil
       end
     end
+
+    include MutexM
+    synchronized :search
   end

---------------------
Beyond

In This Thread

Prev Next