mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-14 13:18:19 +00:00
thread: remove weak implementation of myself()
This commit is contained in:
@ -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 };
|
||||
|
Reference in New Issue
Block a user