You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2012/07/20 00:10:38 UTC

[lucy-commits] svn commit: r1363569 - in /lucy/trunk: c/src/Lucy/Object/ core/Clownfish/ core/Lucy/Object/ core/Lucy/Test/Object/ example-lang/src/Lucy/Object/ perl/buildlib/Lucy/Build/Binding/ perl/lib/ perl/lib/Clownfish/ perl/lib/Lucy/Object/ perl/t/binding/ perl/...

Author: marvin
Date: Thu Jul 19 22:10:37 2012
New Revision: 1363569

URL: http://svn.apache.org/viewvc?rev=1363569&view=rev
Log:
LUCY-242 Move LockFreeRegistry under Clownfish.

Added:
    lucy/trunk/core/Clownfish/
    lucy/trunk/core/Clownfish/LockFreeRegistry.c
      - copied, changed from r1363518, lucy/trunk/core/Lucy/Object/LockFreeRegistry.c
    lucy/trunk/core/Clownfish/LockFreeRegistry.cfh
      - copied, changed from r1363518, lucy/trunk/core/Lucy/Object/LockFreeRegistry.cfh
    lucy/trunk/perl/lib/Clownfish/
    lucy/trunk/perl/lib/Clownfish/LockFreeRegistry.pm
      - copied, changed from r1363518, lucy/trunk/perl/lib/Lucy/Object/LockFreeRegistry.pm
Removed:
    lucy/trunk/core/Lucy/Object/LockFreeRegistry.c
    lucy/trunk/core/Lucy/Object/LockFreeRegistry.cfh
    lucy/trunk/perl/lib/Lucy/Object/LockFreeRegistry.pm
Modified:
    lucy/trunk/c/src/Lucy/Object/LockFreeRegistry.c
    lucy/trunk/core/Lucy/Object/VTable.c
    lucy/trunk/core/Lucy/Test/Object/TestLockFreeRegistry.c
    lucy/trunk/example-lang/src/Lucy/Object/LockFreeRegistry.c
    lucy/trunk/perl/buildlib/Lucy/Build/Binding/Object.pm
    lucy/trunk/perl/lib/Lucy.pm
    lucy/trunk/perl/t/binding/038-lock_free_registry.t
    lucy/trunk/perl/xs/Lucy/Object/LockFreeRegistry.c
    lucy/trunk/ruby/src/Lucy/Object/LockFreeRegistry.c

Modified: lucy/trunk/c/src/Lucy/Object/LockFreeRegistry.c
URL: http://svn.apache.org/viewvc/lucy/trunk/c/src/Lucy/Object/LockFreeRegistry.c?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/c/src/Lucy/Object/LockFreeRegistry.c (original)
+++ lucy/trunk/c/src/Lucy/Object/LockFreeRegistry.c Thu Jul 19 22:10:37 2012
@@ -17,7 +17,7 @@
 #define C_LUCY_LOCKFREEREGISTRY
 
 #include "CFBind.h"
-#include "Lucy/Object/LockFreeRegistry.h"
+#include "Clownfish/LockFreeRegistry.h"
 
 void*
 lucy_LFReg_to_host(lucy_LockFreeRegistry *self) {

Copied: lucy/trunk/core/Clownfish/LockFreeRegistry.c (from r1363518, lucy/trunk/core/Lucy/Object/LockFreeRegistry.c)
URL: http://svn.apache.org/viewvc/lucy/trunk/core/Clownfish/LockFreeRegistry.c?p2=lucy/trunk/core/Clownfish/LockFreeRegistry.c&p1=lucy/trunk/core/Lucy/Object/LockFreeRegistry.c&r1=1363518&r2=1363569&rev=1363569&view=diff
==============================================================================
--- lucy/trunk/core/Lucy/Object/LockFreeRegistry.c (original)
+++ lucy/trunk/core/Clownfish/LockFreeRegistry.c Thu Jul 19 22:10:37 2012
@@ -18,7 +18,7 @@
 #define LUCY_USE_SHORT_NAMES
 #define CHY_USE_SHORT_NAMES
 
-#include "Lucy/Object/LockFreeRegistry.h"
+#include "Clownfish/LockFreeRegistry.h"
 #include "Lucy/Object/Err.h"
 #include "Lucy/Object/VTable.h"
 #include "Lucy/Util/Atomic.h"

Copied: lucy/trunk/core/Clownfish/LockFreeRegistry.cfh (from r1363518, lucy/trunk/core/Lucy/Object/LockFreeRegistry.cfh)
URL: http://svn.apache.org/viewvc/lucy/trunk/core/Clownfish/LockFreeRegistry.cfh?p2=lucy/trunk/core/Clownfish/LockFreeRegistry.cfh&p1=lucy/trunk/core/Lucy/Object/LockFreeRegistry.cfh&r1=1363518&r2=1363569&rev=1363569&view=diff
==============================================================================
--- lucy/trunk/core/Lucy/Object/LockFreeRegistry.cfh (original)
+++ lucy/trunk/core/Clownfish/LockFreeRegistry.cfh Thu Jul 19 22:10:37 2012
@@ -18,7 +18,7 @@ parcel Lucy;
 
 /** Specialized lock free hash table for storing VTables.
  */
-class Lucy::Object::LockFreeRegistry cnick LFReg inherits Lucy::Object::Obj {
+class Clownfish::LockFreeRegistry cnick LFReg inherits Lucy::Object::Obj {
 
     size_t  capacity;
     void   *entries;

Modified: lucy/trunk/core/Lucy/Object/VTable.c
URL: http://svn.apache.org/viewvc/lucy/trunk/core/Lucy/Object/VTable.c?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/core/Lucy/Object/VTable.c (original)
+++ lucy/trunk/core/Lucy/Object/VTable.c Thu Jul 19 22:10:37 2012
@@ -28,7 +28,7 @@
 #include "Lucy/Object/CharBuf.h"
 #include "Lucy/Object/Err.h"
 #include "Lucy/Object/Hash.h"
-#include "Lucy/Object/LockFreeRegistry.h"
+#include "Clownfish/LockFreeRegistry.h"
 #include "Lucy/Object/Method.h"
 #include "Lucy/Object/Num.h"
 #include "Lucy/Object/VArray.h"

Modified: lucy/trunk/core/Lucy/Test/Object/TestLockFreeRegistry.c
URL: http://svn.apache.org/viewvc/lucy/trunk/core/Lucy/Test/Object/TestLockFreeRegistry.c?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/core/Lucy/Test/Object/TestLockFreeRegistry.c (original)
+++ lucy/trunk/core/Lucy/Test/Object/TestLockFreeRegistry.c Thu Jul 19 22:10:37 2012
@@ -21,7 +21,7 @@
 #include "Lucy/Test.h"
 #include "Lucy/Test/TestUtils.h"
 #include "Lucy/Test/Object/TestLockFreeRegistry.h"
-#include "Lucy/Object/LockFreeRegistry.h"
+#include "Clownfish/LockFreeRegistry.h"
 
 StupidHashCharBuf*
 StupidHashCharBuf_new(const char *text) {

Modified: lucy/trunk/example-lang/src/Lucy/Object/LockFreeRegistry.c
URL: http://svn.apache.org/viewvc/lucy/trunk/example-lang/src/Lucy/Object/LockFreeRegistry.c?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/example-lang/src/Lucy/Object/LockFreeRegistry.c (original)
+++ lucy/trunk/example-lang/src/Lucy/Object/LockFreeRegistry.c Thu Jul 19 22:10:37 2012
@@ -17,7 +17,7 @@
 #define C_LUCY_LOCKFREEREGISTRY
 
 #include "CFBind.h"
-#include "Lucy/Object/LockFreeRegistry.h"
+#include "Clownfish/LockFreeRegistry.h"
 
 void*
 lucy_LFReg_to_host(lucy_LockFreeRegistry *self) {

Modified: lucy/trunk/perl/buildlib/Lucy/Build/Binding/Object.pm
URL: http://svn.apache.org/viewvc/lucy/trunk/perl/buildlib/Lucy/Build/Binding/Object.pm?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/perl/buildlib/Lucy/Build/Binding/Object.pm (original)
+++ lucy/trunk/perl/buildlib/Lucy/Build/Binding/Object.pm Thu Jul 19 22:10:37 2012
@@ -470,7 +470,7 @@ END_XS_CODE
 sub bind_lockfreeregistry {
     my $binding = Clownfish::CFC::Binding::Perl::Class->new(
         parcel     => "Lucy",
-        class_name => "Lucy::Object::LockFreeRegistry",
+        class_name => "Clownfish::LockFreeRegistry",
     );
     Clownfish::CFC::Binding::Perl::Class->register($binding);
 }

Copied: lucy/trunk/perl/lib/Clownfish/LockFreeRegistry.pm (from r1363518, lucy/trunk/perl/lib/Lucy/Object/LockFreeRegistry.pm)
URL: http://svn.apache.org/viewvc/lucy/trunk/perl/lib/Clownfish/LockFreeRegistry.pm?p2=lucy/trunk/perl/lib/Clownfish/LockFreeRegistry.pm&p1=lucy/trunk/perl/lib/Lucy/Object/LockFreeRegistry.pm&r1=1363518&r2=1363569&rev=1363569&view=diff
==============================================================================
--- lucy/trunk/perl/lib/Lucy/Object/LockFreeRegistry.pm (original)
+++ lucy/trunk/perl/lib/Clownfish/LockFreeRegistry.pm Thu Jul 19 22:10:37 2012
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-package Lucy::Object::LockFreeRegistry;
+package Clownfish::LockFreeRegistry;
 use Lucy;
 our $VERSION = '0.003000';
 $VERSION = eval $VERSION;

Modified: lucy/trunk/perl/lib/Lucy.pm
URL: http://svn.apache.org/viewvc/lucy/trunk/perl/lib/Lucy.pm?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/perl/lib/Lucy.pm (original)
+++ lucy/trunk/perl/lib/Lucy.pm Thu Jul 19 22:10:37 2012
@@ -123,7 +123,7 @@ sub error {$Lucy::Object::Err::error}
 }
 
 {
-    package Lucy::Object::LockFreeRegistry;
+    package Clownfish::LockFreeRegistry;
     our $VERSION = '0.003000';
     $VERSION = eval $VERSION;
     no warnings 'redefine';

Modified: lucy/trunk/perl/t/binding/038-lock_free_registry.t
URL: http://svn.apache.org/viewvc/lucy/trunk/perl/t/binding/038-lock_free_registry.t?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/perl/t/binding/038-lock_free_registry.t (original)
+++ lucy/trunk/perl/t/binding/038-lock_free_registry.t Thu Jul 19 22:10:37 2012
@@ -38,7 +38,7 @@ use Time::HiRes qw( time usleep );
 use List::Util qw( shuffle );
 use Lucy::Test;
 
-my $registry = Lucy::Object::LockFreeRegistry->new( capacity => 32 );
+my $registry = Clownfish::LockFreeRegistry->new( capacity => 32 );
 
 sub register_many {
     my ( $nums, $delay ) = @_;

Modified: lucy/trunk/perl/xs/Lucy/Object/LockFreeRegistry.c
URL: http://svn.apache.org/viewvc/lucy/trunk/perl/xs/Lucy/Object/LockFreeRegistry.c?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/perl/xs/Lucy/Object/LockFreeRegistry.c (original)
+++ lucy/trunk/perl/xs/Lucy/Object/LockFreeRegistry.c Thu Jul 19 22:10:37 2012
@@ -18,7 +18,7 @@
 #define C_LUCY_LOCKFREEREGISTRY
 #include "XSBind.h"
 
-#include "Lucy/Object/LockFreeRegistry.h"
+#include "Clownfish/LockFreeRegistry.h"
 #include "Lucy/Object/Host.h"
 
 void*

Modified: lucy/trunk/ruby/src/Lucy/Object/LockFreeRegistry.c
URL: http://svn.apache.org/viewvc/lucy/trunk/ruby/src/Lucy/Object/LockFreeRegistry.c?rev=1363569&r1=1363568&r2=1363569&view=diff
==============================================================================
--- lucy/trunk/ruby/src/Lucy/Object/LockFreeRegistry.c (original)
+++ lucy/trunk/ruby/src/Lucy/Object/LockFreeRegistry.c Thu Jul 19 22:10:37 2012
@@ -17,7 +17,7 @@
 #define C_LUCY_LOCKFREEREGISTRY
 
 #include "CFBind.h"
-#include "Lucy/Object/LockFreeRegistry.h"
+#include "Clownfish/LockFreeRegistry.h"
 
 void*
 lucy_LFReg_to_host(lucy_LockFreeRegistry *self) {