af146e7dcd
The former 'Genode::Timed_semaphore' mechanism is moved to the private part of the two remaining users, namely dde_rump and the libc. Note there are now two private copies of 'timed_semaphore.h'. This should be regarded as an interim step until the use of this mechanism is removed from both users. This patch also cleans up the mechanism from legacy Genode API calls and global side effects (alarm-thread singleton). The test/timed_semaphore is now located at the libports repository as it now tests a mechanism of the libc. The former timed_semaphore library is no more. Fixes #3121
32 lines
511 B
C++
32 lines
511 B
C++
/**
|
|
* \brief Rump::Env initialization
|
|
* \author Sebastian Sumpf
|
|
* \date 2016-06-23
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2016-2017 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
*/
|
|
|
|
#include <rump/env.h>
|
|
|
|
/*
|
|
* Genode enviroment instance
|
|
*/
|
|
static Genode::Constructible<Rump::Env> _env;
|
|
|
|
|
|
Rump::Env &Rump::env()
|
|
{
|
|
return *_env;
|
|
}
|
|
|
|
|
|
void Rump::construct_env(Genode::Env &env)
|
|
{
|
|
_env.construct(env);
|
|
}
|