Forum: Ruby-core [ruby-trunk - Feature #8882][Open] rb_obj_is_mutex() into include/ruby/intern.h

C042517d59bed4761cc88681bf71fca8?d=identicon&s=25 Glass_saga (Masaki Matsushita) (Guest)
on 2013-09-09 17:30
(Received via mailing list)
Issue #8882 has been reported by Glass_saga (Masaki Matsushita).

----------------------------------------
Feature #8882: rb_obj_is_mutex() into include/ruby/intern.h
https://bugs.ruby-lang.org/issues/8882

Author: Glass_saga (Masaki Matsushita)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: current: 2.1.0


rb_obj_is_mutex() is currently an internal API function.
However, this function is useful for C extension developers to
distinguish between Mutex and other objects extended by Mutex_m.
I want to use it in ext/thread/thread.c for this purpose.
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 ko1 (Koichi Sasada) (Guest)
on 2013-10-01 10:19
(Received via mailing list)
Issue #8882 has been updated by ko1 (Koichi Sasada).

Status changed from Open to Rejected
Assignee set to ko1 (Koichi Sasada)

Maybe you want to use it for CV to make it fast.
However, we are not recommend CV because it is difficult primitive.
So we shouldn't touch it.

----------------------------------------
Feature #8882: rb_obj_is_mutex() into include/ruby/intern.h
https://bugs.ruby-lang.org/issues/8882#change-42149

Author: Glass_saga (Masaki Matsushita)
Status: Rejected
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category:
Target version: current: 2.1.0


rb_obj_is_mutex() is currently an internal API function.
However, this function is useful for C extension developers to
distinguish between Mutex and other objects extended by Mutex_m.
I want to use it in ext/thread/thread.c for this purpose.
This topic is locked and can not be replied to.