summaryrefslogtreecommitdiff
path: root/ext/Thread/Thread.pm
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Thread/Thread.pm')
-rw-r--r--ext/Thread/Thread.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/Thread/Thread.pm b/ext/Thread/Thread.pm
new file mode 100644
index 0000000000..2ace5dde2d
--- /dev/null
+++ b/ext/Thread/Thread.pm
@@ -0,0 +1,20 @@
+package Thread;
+require Exporter;
+require DynaLoader;
+@ISA = qw(Exporter DynaLoader);
+@EXPORT_OK = qw(yield cond_signal cond_broadcast cond_wait async);
+
+#
+# Methods
+#
+
+#
+# Exported functions
+#
+sub async (&) {
+ return new Thread $_[0];
+}
+
+bootstrap Thread;
+
+1;