L4Re - L4 Runtime Environment
L4Re::Util::Registry_server< LOOP_HOOKS > Class Template Reference

A server loop object which has a Object_registry included. More...

+ Inheritance diagram for L4Re::Util::Registry_server< LOOP_HOOKS >:
+ Collaboration diagram for L4Re::Util::Registry_server< LOOP_HOOKS >:

Public Member Functions

 Registry_server ()
 Create a new server loop object for the main thread of the task. More...
 
 Registry_server (l4_utcb_t *utcb, L4::Cap< L4::Thread > server, L4::Cap< L4::Factory > factory)
 Create a new server loop object for an arbitrary thread and factory. More...
 
Object_registry const * registry () const
 Return registry of this server loop. More...
 
Object_registryregistry ()
 Return registry of this server loop. More...
 
void L4_NORETURN loop ()
 Start the server loop.
 
- Public Member Functions inherited from L4::Server< LOOP_HOOKS >
 Server (l4_utcb_t *utcb)
 Initializes the server loop. More...
 
template<typename DISPATCH >
L4_NORETURN void internal_loop (DISPATCH dispatch)
 The server loop. More...
 
template<typename R >
L4_NORETURN void loop_noexc (R r)
 Server loop without exception handling.
 
template<typename EXC , typename R >
L4_NORETURN void loop (R r)
 Server loop with internal exception handling. More...
 

Additional Inherited Members

- Protected Member Functions inherited from L4::Server< LOOP_HOOKS >
l4_msgtag_t reply_n_wait (l4_msgtag_t reply, l4_umword_t *p)
 Internal implementation for reply and wait.
 

Detailed Description

template<typename LOOP_HOOKS = L4::Ipc_svr::Default_loop_hooks>
class L4Re::Util::Registry_server< LOOP_HOOKS >

A server loop object which has a Object_registry included.

Examples:
examples/clntsrv/server.cc, examples/libs/l4re/c++/shared_ds/ds_srv.cc, and examples/libs/l4re/streammap/server.cc.

Definition at line 293 of file object_registry.

Constructor & Destructor Documentation

◆ Registry_server() [1/2]

template<typename LOOP_HOOKS = L4::Ipc_svr::Default_loop_hooks>
L4Re::Util::Registry_server< LOOP_HOOKS >::Registry_server ( )
inline

Create a new server loop object for the main thread of the task.

Precondition
Must be called from the main thread or behaviour is undefined.

Definition at line 305 of file object_registry.

◆ Registry_server() [2/2]

template<typename LOOP_HOOKS = L4::Ipc_svr::Default_loop_hooks>
L4Re::Util::Registry_server< LOOP_HOOKS >::Registry_server ( l4_utcb_t utcb,
L4::Cap< L4::Thread server,
L4::Cap< L4::Factory factory 
)
inline

Create a new server loop object for an arbitrary thread and factory.

Parameters
utcbThe UTCB of the thread running the server loop.
serverCapability to thread running the server loop.
factoryCapability to factory object used to create new IPC gates.

Definition at line 315 of file object_registry.

Member Function Documentation

◆ registry() [1/2]

template<typename LOOP_HOOKS = L4::Ipc_svr::Default_loop_hooks>
Object_registry const* L4Re::Util::Registry_server< LOOP_HOOKS >::registry ( ) const
inline

Return registry of this server loop.

Definition at line 321 of file object_registry.

◆ registry() [2/2]

template<typename LOOP_HOOKS = L4::Ipc_svr::Default_loop_hooks>
Object_registry* L4Re::Util::Registry_server< LOOP_HOOKS >::registry ( )
inline

Return registry of this server loop.

Definition at line 323 of file object_registry.


The documentation for this class was generated from the following file: