summaryrefslogtreecommitdiff
path: root/fakethr.h
diff options
context:
space:
mode:
Diffstat (limited to 'fakethr.h')
-rw-r--r--fakethr.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/fakethr.h b/fakethr.h
new file mode 100644
index 0000000000..fc25571ac9
--- /dev/null
+++ b/fakethr.h
@@ -0,0 +1,15 @@
+typedef int perl_mutex;
+typedef int perl_key;
+
+struct perl_wait_queue {
+ struct thread * thread;
+ struct perl_wait_queue * next;
+};
+typedef struct perl_wait_queue *perl_cond;
+
+struct thread_intern {
+ perl_thread next_run, prev_run; /* Linked list of runnable threads */
+ perl_cond wait_queue; /* Wait queue that we are waiting on */
+ IV private; /* Holds data across time slices */
+ I32 savemark; /* Holds MARK for thread join values */
+};