summaryrefslogtreecommitdiff
path: root/firmware/thread.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-22 12:07:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-22 12:07:34 +0000
commit3c031c5ab96818783c4381a6ace397c76fe3f34a (patch)
treefcf68f66ca96c1a2f42adf6d842f98aebeb801e1 /firmware/thread.h
parent7503957187fc174ff7addc68c39d1cc3cd8ee5cc (diff)
downloadrockbox-3c031c5ab96818783c4381a6ace397c76fe3f34a.zip
rockbox-3c031c5ab96818783c4381a6ace397c76fe3f34a.tar.gz
rockbox-3c031c5ab96818783c4381a6ace397c76fe3f34a.tar.bz2
rockbox-3c031c5ab96818783c4381a6ace397c76fe3f34a.tar.xz
simple collaborate multitasking scheduler donated to us by Ulf Ralberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@170 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.h')
-rw-r--r--firmware/thread.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/firmware/thread.h b/firmware/thread.h
new file mode 100644
index 0000000..e33849f
--- /dev/null
+++ b/firmware/thread.h
@@ -0,0 +1,32 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2002 by Ulf Ralberg
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#ifndef __thread_h
+#define __thread_h 1
+
+#include <sys/types.h>
+
+#define MAXTHREADS 16
+
+extern int create_thread(void* fp, void* sp, int stk_size);
+extern void switch_thread(void);
+
+#endif /* __thread.h */
+
+/* eof */
+