base: remove deprecated cancel_blocking() support
for threads. Fixes #3806
This commit is contained in:
committed by
Norman Feske
parent
ce6f4dffe5
commit
f3efbe50bb
@@ -80,11 +80,6 @@ namespace Genode {
|
||||
|
||||
~Platform_thread();
|
||||
|
||||
/**
|
||||
* Cancel currently blocking operation
|
||||
*/
|
||||
void cancel_blocking();
|
||||
|
||||
/**
|
||||
* Pause this thread
|
||||
*/
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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() { }
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user