thread: remove weak implementation of myself()

This commit is contained in:
Christian Helmuth
2015-05-04 14:05:06 +02:00
parent 2f14f57735
commit c6857b3019
3 changed files with 0 additions and 28 deletions

View File

@ -28,16 +28,6 @@
extern int main_thread_futex_counter;
/**
* 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 void thread_yield()
{
struct timespec ts = { 0, 1000 };