mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
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:
parent
be4971eb0a
commit
976d669253
@ -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 ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user