1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 Dan Everton
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef __THREADSDL_H__
21 #define __THREADSDL_H__
23 #include "SDL_thread.h"
25 extern SDL_Thread
*gui_thread
; /* The "main" thread */
26 void thread_sdl_thread_lock(void *me
);
27 void * thread_sdl_thread_unlock(void);
28 bool thread_sdl_init(void *param
); /* Init the sim threading API - thread created calls app_main */
29 void thread_sdl_shutdown(void); /* Shut down all kernel threads gracefully */
30 void thread_sdl_lock(void); /* Sync with SDL threads */
31 void thread_sdl_unlock(void); /* Sync with SDL threads */
33 #endif /* #ifndef __THREADSDL_H__ */