aboutsummaryrefslogtreecommitdiffstats
path: root/src/standalone/lab14/thread.h
diff options
context:
space:
mode:
authorFilip Strömbäck <fstromback@gmail.com>2021-03-16 13:01:32 +0100
committerFilip Strömbäck <fstromback@gmail.com>2021-03-16 13:01:32 +0100
commitb7002c53057d4ae049237786d26f00a762dbc2ea (patch)
treef13985eaafedba1d64a6aa835bf93392186d0164 /src/standalone/lab14/thread.h
parentcda174afc8e1bf6b779726965f5eaa030d80b1dc (diff)
downloadpintos-rs-b7002c53057d4ae049237786d26f00a762dbc2ea.tar.gz
Updated names in standalone/ to match new lab numbering.
Diffstat (limited to 'src/standalone/lab14/thread.h')
-rw-r--r--src/standalone/lab14/thread.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/standalone/lab14/thread.h b/src/standalone/lab14/thread.h
new file mode 100644
index 0000000..62568ab
--- /dev/null
+++ b/src/standalone/lab14/thread.h
@@ -0,0 +1,16 @@
+#ifndef THREAD_H
+#define THREAD_H
+
+struct thread
+{
+ /* This is just a part of the Pintos Thread. */
+ void* pagedir;
+};
+
+/* Initiate the threading system. */
+void thread_init();
+
+/* Return a pointer to the currently active thread. */
+struct thread* thread_current();
+
+#endif