base-nova: remove special Thread_base::myself()

The weak implementation was added for quite special purposes years ago
and is no longer needed. On the other hand, the weak attribute does not
help if the implementation ends up in a shared library, which first
resolves symbols locally before asking ldso (that includes the acutal
thread library) *shiver*
This commit is contained in:
Christian Helmuth 2014-09-04 14:45:39 +02:00
parent be4971eb0a
commit 976d669253
1 changed files with 0 additions and 13 deletions

View File

@ -28,19 +28,6 @@
extern int main_thread_running_semaphore();
/**
* Resolve 'Thread_base::myself' when not linking the thread library
*
* This weak symbol is primarily used by test cases. Most other Genode programs
* use the thread library. If the thread library is not used, 'myself' can only
* be called by the main thread, for which 'myself' is defined as zero.
*/
Genode::Thread_base * __attribute__((weak)) Genode::Thread_base::myself()
{
return 0;
}
static inline bool thread_check_stopped_and_restart(Genode::Thread_base *thread_base)
{
Genode::addr_t sem = thread_base ?