mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 02:28:54 +00:00
thread: remove weak implementation of myself()
This commit is contained in:
parent
2f14f57735
commit
c6857b3019
10
repos/base-codezero/src/base/env/utcb.cc
vendored
10
repos/base-codezero/src/base/env/utcb.cc
vendored
@ -15,16 +15,6 @@
|
||||
#include <base/thread.h>
|
||||
|
||||
|
||||
/**
|
||||
* 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; }
|
||||
|
||||
|
||||
Genode::Native_utcb *Genode::Thread_base::utcb()
|
||||
{
|
||||
/*
|
||||
|
@ -29,14 +29,6 @@ namespace Fiasco {
|
||||
#include <l4/sys/thread.h>
|
||||
}
|
||||
|
||||
/**
|
||||
* 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; }
|
||||
|
||||
/**
|
||||
* Yield CPU time
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user