2011-12-22 16:19:25 +01:00
|
|
|
/*
|
|
|
|
* \brief Dummy helper functions for the Lock implementation
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2009-10-02
|
|
|
|
*
|
|
|
|
* For documentation about the interface, please revisit the 'base-pistachio'
|
|
|
|
* implementation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 21:44:47 +01:00
|
|
|
* Copyright (C) 2009-2013 Genode Labs GmbH
|
2011-12-22 16:19:25 +01:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <base/native_types.h>
|
2013-03-12 19:33:28 +01:00
|
|
|
#include <base/thread.h>
|
2011-12-22 16:19:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
static inline void thread_yield() { }
|
|
|
|
|
|
|
|
|
2013-03-12 19:33:28 +01:00
|
|
|
static bool thread_check_stopped_and_restart(Genode::Thread_base *)
|
2011-12-22 16:19:25 +01:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-03-12 19:33:28 +01:00
|
|
|
static inline void thread_switch_to(Genode::Thread_base *)
|
2011-12-22 16:19:25 +01:00
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
|
static inline void thread_stop_myself() { while (true); }
|