summaryrefslogtreecommitdiffstats
path: root/ext/thread/lib
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-10 21:18:24 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-10 21:18:24 +0000
commit0deaef57ae5e531bb1d4b2d4ebd93fa08aebd0c4 (patch)
treec2bdae1d8ece62fd2ac8ee60aafcb4d7c2e1e2bc /ext/thread/lib
parent94bb5e1281b96fe5d5473c40cab44e32a90cc99c (diff)
downloadruby-0deaef57ae5e531bb1d4b2d4ebd93fa08aebd0c4.tar.gz
ruby-0deaef57ae5e531bb1d4b2d4ebd93fa08aebd0c4.tar.xz
ruby-0deaef57ae5e531bb1d4b2d4ebd93fa08aebd0c4.zip
* ext/thread/lib/thread.rb: Add a replacement of thread.rb that
loads this extension. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/thread/lib')
-rw-r--r--ext/thread/lib/thread.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/thread/lib/thread.rb b/ext/thread/lib/thread.rb
new file mode 100644
index 000000000..6c533aba3
--- /dev/null
+++ b/ext/thread/lib/thread.rb
@@ -0,0 +1,5 @@
+unless defined? Thread
+ fail "Thread not available for this ruby interpreter"
+end
+
+require 'thread.so'