From 3c031c5ab96818783c4381a6ace397c76fe3f34a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 22 Apr 2002 12:07:34 +0000 Subject: 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 --- firmware/thread.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 firmware/thread.h (limited to 'firmware/thread.h') 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 + +#define MAXTHREADS 16 + +extern int create_thread(void* fp, void* sp, int stk_size); +extern void switch_thread(void); + +#endif /* __thread.h */ + +/* eof */ + -- cgit v1.1