base: rename 'Volatile_object' to 'Reconstructible'

Fixes #2151
This commit is contained in:
Norman Feske
2016-12-01 17:37:08 +01:00
parent 6fa87e62dd
commit 25a7ea3d40
76 changed files with 421 additions and 383 deletions

View File

@ -58,7 +58,7 @@ namespace {
void block() { _sig_rec.wait_for_signal(); }
};
Lazy_volatile_object<Blockade> _session_blockade;
Constructible<Blockade> _session_blockade;
Env(Genode::Entrypoint &ep) : _ep(ep) { env_ptr = this; }

View File

@ -96,7 +96,7 @@ class Log_console : public Console
void reconnect()
{
/*
* We cannot use a 'Volatile_object' because we have to skip
* We cannot use a 'Reconstructible' because we have to skip
* the object destruction inside a freshly forked process.
* Otherwise, the attempt to destruct the capability contained
* in the 'Log' object would result in an inconsistent ref counter

View File

@ -18,7 +18,7 @@
#include <base/thread.h>
#include <base/sleep.h>
#include <base/trace/events.h>
#include <util/volatile_object.h>
#include <util/reconstructible.h>
/* base-internal includes */
#include <base/internal/globals.h>
@ -37,7 +37,7 @@ class Signal_handler_thread : Thread, Lock
* thread because on some platforms (e.g., Fiasco.OC), the calling
* thread context is used for implementing the signal-source protocol.
*/
Lazy_volatile_object<Signal_source_client> _signal_source;
Constructible<Signal_source_client> _signal_source;
void entry()
{
@ -76,11 +76,11 @@ class Signal_handler_thread : Thread, Lock
/*
* The signal-handler thread will be constructed before global constructors are
* called and, consequently, must not be a global static object. Otherwise, the
* Lazy_volatile_object constructor will be executed twice.
* 'Constructible' constructor will be executed twice.
*/
static Lazy_volatile_object<Signal_handler_thread> & signal_handler_thread()
static Constructible<Signal_handler_thread> & signal_handler_thread()
{
static Lazy_volatile_object<Signal_handler_thread> inst;
static Constructible<Signal_handler_thread> inst;
return inst;
}

View File

@ -18,7 +18,7 @@
#include <base/env.h>
#include <base/heap.h>
#include <util/string.h>
#include <util/volatile_object.h>
#include <util/reconstructible.h>
/* base-internal includes */
#include <base/internal/globals.h>

View File

@ -75,11 +75,11 @@ struct Linker::File
*/
struct Linker::Elf_file : File
{
Env &env;
Lazy_volatile_object<Rom_connection> rom_connection;
Rom_session_client rom;
Ram_dataspace_capability ram_cap[Phdr::MAX_PHDR];
bool const loaded;
Env &env;
Constructible<Rom_connection> rom_connection;
Rom_session_client rom;
Ram_dataspace_capability ram_cap[Phdr::MAX_PHDR];
bool const loaded;
typedef String<64> Name;

View File

@ -20,7 +20,7 @@
#include <region_map/client.h>
#include <base/allocator_avl.h>
#include <util/retry.h>
#include <util/volatile_object.h>
#include <util/reconstructible.h>
/* base-internal includes */
#include <base/internal/page_size.h>
@ -60,7 +60,7 @@ class Linker::Region_map
public:
typedef Lazy_volatile_object<Region_map> Constructible_region_map;
typedef Constructible<Region_map> Constructible_region_map;
static Constructible_region_map &r();

View File

@ -17,7 +17,7 @@
#include <base/exception.h>
#include <base/env.h>
#include <base/shared_object.h>
#include <util/volatile_object.h>
#include <util/reconstructible.h>
#include <util/fifo.h>
#include <util/misc_math.h>
#include <util/string.h>

View File

@ -89,7 +89,7 @@ class Linker::Elf_object : public Object, public Fifo<Elf_object>::Element
/*
* Optional ELF file, skipped for initial 'Ld' initialization
*/
Lazy_volatile_object<Elf_file> _elf_file;
Constructible<Elf_file> _elf_file;
bool _object_init(Object::Name const &name, Elf::Addr reloc_base)
@ -557,9 +557,9 @@ class Linker::Config
};
static Genode::Lazy_volatile_object<Heap> &heap()
static Genode::Constructible<Heap> &heap()
{
return *unmanaged_singleton<Lazy_volatile_object<Heap>>();
return *unmanaged_singleton<Constructible<Heap>>();
}