[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

Re: mutex_m and thread

From: matz@... (Yukihiro Matsumoto)
Date: 2003-05-07 16:16:41 UTC
List: ruby-core #1016
Hi,

In message "mutex_m and thread"
    on 03/05/06, Dave Thomas <dave@pragprog.com> writes:

|Currently we have two parallel implementations of mutex, one in 
|thread.rb and one in mutex_m.rb.
|
|Would it be possible to change the one in thread.rb to:
|
|   class Mutex
|     include Mutex_m
|   end

Mutex_m does much work than plain Mutex, so that I think it's
inappropriate to define Mutex using Mutex_m.

But I think Mutex_m can use Mutex inside to remove code duplication.
Besides, I have a plan to implement Mutex in C in the future.

							matz.

In This Thread

Prev Next