2006-02-09 21:49:28 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
2010-05-15 21:02:47 +00:00
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
2006-02-09 21:49:28 +00:00
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Dan Everton
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2006-02-09 21:49:28 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
#ifndef __THREADSDL_H__
|
|
|
|
#define __THREADSDL_H__
|
2006-02-09 21:49:28 +00:00
|
|
|
|
2011-02-18 22:46:01 +00:00
|
|
|
#ifdef HAVE_SDL_THREADS
|
2010-05-15 21:02:47 +00:00
|
|
|
/* extra thread functions that only apply when running on hosting platforms */
|
|
|
|
void sim_thread_lock(void *me);
|
|
|
|
void * sim_thread_unlock(void);
|
|
|
|
void sim_thread_exception_wait(void);
|
|
|
|
void sim_thread_shutdown(void); /* Shut down all kernel threads gracefully */
|
2011-02-18 22:46:01 +00:00
|
|
|
#endif
|
2006-02-09 21:49:28 +00:00
|
|
|
|
2010-05-15 21:02:47 +00:00
|
|
|
#endif /* #ifndef __THREADSDL_H__ */
|
2006-02-09 21:49:28 +00:00
|
|
|
|