base: remove deprecated cancel_blocking() support

for threads.

Fixes #3806
This commit is contained in:
Alexander Boettcher
2020-07-06 16:09:44 +02:00
committed by Norman Feske
parent ce6f4dffe5
commit f3efbe50bb
49 changed files with 3 additions and 343 deletions

View File

@@ -80,11 +80,6 @@ namespace Genode {
~Platform_thread();
/**
* Cancel currently blocking operation
*/
void cancel_blocking();
/**
* Pause this thread
*/

View File

@@ -89,12 +89,6 @@ Platform_thread::~Platform_thread()
}
void Platform_thread::cancel_blocking()
{
lx_tgkill(_pid, _tid, LX_SIGUSR1);
}
void Platform_thread::pause()
{
warning(__func__, "not implemented");

View File

@@ -69,6 +69,3 @@ void Thread::start()
native_thread().tid = lx_create_thread(Thread::_thread_start, stack_top(), this);
native_thread().pid = lx_getpid();
}
void Thread::cancel_blocking() { }

View File

@@ -166,9 +166,3 @@ void Thread::start()
/* wait until the 'thread_start' function got entered */
startup_lock().block();
}
void Thread::cancel_blocking()
{
Cpu_thread_client(_thread_cap).cancel_blocking();
}

View File

@@ -531,14 +531,6 @@ Thread::Thread(Env &env, Name const &name, size_t stack_size)
: Thread(env, name, stack_size, Location(), Weight(), env.cpu()) { }
void Thread::cancel_blocking()
{
/*
* XXX implement interaction with CPU session
*/
}
Thread::~Thread()
{
bool const needs_join = (pthread_cancel(native_thread().meta_data->pt) == 0);